Updated squid class and error handling

If amqp message is missing the proper keys the message will be safely
discarded and not kill the entire application.

Changed around some functions dealing with geolitecity database, and added simple
check whether it needs updating at runtime or not.

Trimmed some extra code that wasn't needed.

Removed web.py config to be added to global config.

fixed formatting and removed unused imports.

Added better description to amqp message format

removed code used for debugging.