Panama -
The same sex marriage laws in Massachusetts and San Francisco won't get you anywhere with immigration. The immigration laws are federal and they do not recognize same-sex marriages on the federal level...so no green card.
In short order, the federal law discriminating against same-sex couples legally married in one of the states will be tested by lawsuit. It will probably end up in the Supreme Court and the process will likely take at least 4 or 5 years.