Implements Flask-httpauth for API security