Fix some environment related stuff
Changes to storage so that we're not deleting all keys all the time :/
Fix shebang
Get rid of weird test script
Turn logging on… just to make sure it registers later.
cleanup of the diagnostic function list_keys
Fix staleness calculation so that it works.