jshint
Merge remote-tracking branch 'origin/loginDialog' into loginDialog
Move the apiUrl out to a constant