Api Endpoints

Updated the api directory to be a module within itself as well as added endpoints and functions for catching the url's specified by the API readme. 

Also, I put in some constants into the api.py file that I figured we can use to avoid magic numbers for the status codes. That way if we ever change a response it will take effect api-wide.