Edited for, session token authentication

added window dependency to verify session token from login is still
valid
created dashboard service

made getData function to fetch dashboard data for logged in user
Added window dependency and edited success

on success and a successful response, for login and registering, it will
store the session token in a window session storage for future
verifications
added loadData dependency from a resolve

will be used to populate the dashboard with a user's data
added state dependency and secured routes

added state dependency for rerouting and added resolves to secure routes
and pre fetch data for controllers
changed to post requests and took out url