Fixed issue when finding the lastest sample from a location
Cleaned up maps code

The majority of the code made little sense. Restructured some of the
methods into different files.
Css formatting fixes
Reorganised javascript files