Decoupled recording api from server.p

Broke out recording api resources, and setup/teardown logic from server.py into its own Blueprint.
Implemented decorator in server.py module that carries out http_response object creation and
error handling. This decorator is to be used by all endpoints.

Updated tests to preserve functionality.

Misc logic and style fixes.