Has your attorney provided you any advise going forward? That might be a place to start. There are also credit recovery companies that help position you to obtain credit in the future. One that a few of my clients have used is National Credit Care, 866-595-6313 - http://www.NationalCreditCare.com. I do not know anything about them personally, but it might be a go to resource. The final person you should consult is a Mortgage Broker. If you would like some referrals just let me know and I can pass on some names.
Good luck to you. It sounds like you at least have a plan to reenter the market and I wish you the best.
You see the problems, now should you get a new mortgage, will the process allows after two years of a foreclosure with FHA, but you will have to wait it out as your credit was damaged with the foreclosure no matter the reason.
Best to you.