Fixing multiple things - refactor, return json and using render_template

Hi,

Fixed the next things:
* Removed unused variables and imports - something that I forgot to do when I did the config and db cleanup
* Removed duplicated google maps api - mistake when I did the assets compression
* Returning json instead of text/html response in markers request
* Using flask's render_template instead of jinja and make_response