moved login function to dedicated worker message handler
Refactoring the code using ports in the worker.
Add sinon.js to repo
Handle null events, and check for correct ready states in xhr callbacks
Mock the worker unit tests using sinon to create standalone tests
Whitespace only change to remove commented out mozSocial if statement
Fix jshint issues
Handle the server rejecting a login in the worker