S.R.
One of the things that I would do if I were you is to put a call into your county government, and ask them to direct you to someone who deals with problems with rental housing and disputes about leases - you may have to explain to them what is going on...I think that you may have rights as a renter that are inforced by the State or County - depend on how you state government is set up. I know that in the state of NY they are pretty strong, and the leassor (you) would have to be part of the negotiated proceedings, even if they wanted you to move out. Banks and owners depend on the renter not knowing what do to do, and often they are the victims.
If the lease was signed before the foreclosure proceedings, they may have to honor the lease until the end of the lease, or pay you just compensation to vacate. If the lease was signed after it, you may be able to contact a lawyer and sue the former owner for your moving expenses and for the inconvience of having to move, because you entered into the lease with good faith. The bottom line is that it depends from state to state what you can do, but it is worth it to contact an attorney to learn more about it.
If you were in the state of NY, I would know exactly who to direct you to, but if you need help finding those resources, let me know, and I could probably figure it out to you, but since I know you, let me know if you need my help, and I will do some research for you (since that is closely related to my former field of employment.)