Foreclosure doesn’t have to be the end of the world. It can be the beginning of something much better – if you know what to do.