Added error callback to stop constant spinner.
Placeholding var for holding error dialog status.
Added the checks for error messages to stop everything piling up.
Added methods to add basic auth info to the requests to the api.
Removed unneeded import.
Added response code to callback methods.
Added login form and method
Merge branch 'refs/heads/dev' into feature-refine_issue_fixes
Changed callbacks to have the response passed through to them.
Reverted back to not having the response in the callbacks.

Managed to get status 401 and custom message through to refine.
Login box added and working.
Merge branch 'refs/heads/feature-refine_issue_fixes' into dev