Implement authentication to the api request

Add devise gem and use it for checking token.
Check out this Gist for reference:

https://gist.github.com/josevalim/fb706b1e933ef01e4fb6#file-2_safe_token_authentication-rb-L9
Add support for XML to api request