Make the recording function async.
Record per api/key hits on keys and apis.
get_all -> getAll
Formatting.
getStatsRange takes an array for a key.
Avoid overwriting the constructor in the controllers.
Added code for writing/fetching types.
Added the forapi param to the key controller.