use select2 widget for country field in Manage Billing Accounts

also includes some refactoring to avoid repeated code