Save authToken on login & registration in the localStorage
Don't use stupid cors or it will ruin your session ...
Generate & return authToken on registration/login
Also save & return the user.id in the localstorage
Save the user.id in the  header
Variable typo fix
Angular interceptor function rewriten to match the new pattern from 1.3
Private routes activated, comments added
Reset defaults
Variable typo bugfix
Auth function finalized