Fixed bug and code cleanup

Fixed a bug where User.valid_token_exists? was using the incorrect
inequality
Cleanup of code according to rubocop violations
Changed module hiearchy changed Authentication API

Changed the module hiearchy so that a new constant (API::VERSION) can be
used instead of hard-coding the API version.
Changed the Authentication API to use POST for login and DELETE for
logout on the /auth resource.