checking in caching progress

* Update logging to better capture details in a proper log file
* Fix some pep8 issues
* Work on generating the keys to purge
* Updated the get routes a bit, to make it cleaner/better