Refactor and decouple REST api framework

The recording API endpoints have been moved from the server.py module to a new class called recording.py.
This needs to also return a response, but with the HTTPError's status code and message.