Cleanup with David, renamed a case class, cleanup up json creation code
Extracted static variables to their own objects
Added TTL test
Fixed test
Converted if/then to pattern matching
Removed HEADER from header names
Removed ENDPOINT from endpoint constant
Renamed header usage
Oops, removed a val by accident
Safe TTL for the datastore