Uses rails helpers for token based auth

Rails can take care of the part of parsing the user token.
The middleware is no longer needed.