Refactor to clean up auth.js
Merge pull request #2 from mamarildon/master

Move authentication.js functionality to its own authUtils.js