Moves API to api.py
Adds API with Flask-RESTful
Imports db object
Updates parser and adds record fetching func
Implements User requests
More sensibly imports the User model
Decorates API endpoints with permissions decorators
Moves put to UserList from User
Imports requests
Comments out stubbed routes
Removes requests import
Imports API
Imports Api class
Fixes query syntax
Grabs role information that can be jsonified
Pulls users from API instead of directly
Implements Flask-httpauth for API security
Passes username function to perms decorators

Passing the output of the function returning the httpauth username was
not working because the function could not be resolved when the
decorator was run. As a result, I passed a reference to a function which
would return it instead. This brought new problems. Now, the app loops
the authorization request infinitely.
Overrides HTTPBasicAuth authenticate method

This allows it to work with the Werkzeug check_password function to
determine if the correct password was provided rather than depending on
generating an identical hash. The Werkzeug hashing function does not
generate the same hash each time making this method impossible.
Merges api-security