From visas to taxes, the details matter more than the destination when it comes to moving abroad.