- traded $.ajax for $http
- login/logoff now also works if there are other query parameters
present