Fix bug where it lied about the login working when it actually failed (issue #87)
Improve active_task error logging to have correct status code.  (issue #87)
refactor code which builds relative url string into its own method.  (issue #87)
add test for buildRelativeUrlString (issue #87)