Refs #62 - Move country_profile logic to server side

- Move country profile logic to server side. This allow us to memcache
  queries and also this reduces the number of AJAX calls to one.