Added datasources class for frontend authentication
Modified datasources.coffee:
-- Refactored front-end auth code as requested
-- Added ability to pass in custom url
Merge pull request #8 from kaustavha/master

Added datasources class for frontend authentication