Before you turn in your resignation for a job you aren't thrilled with, take a look at these tips on how to keep it. You might be able to work it out.