Rework output for some routes

also rudimentary api key system