GPII-657: Mocking /login, /token and /logout requests.
GPII-657: Removed "Prerequisites" comment.
GPII-657: Added tests for failed requests.
Refactored the code so that mockSettings are reusable and i mockjaxClear() before every new test.