fixed /database/countries/... urls
fixed URLs to ensure $routes match $locations
automatically detect active page (based on $location)