hypothesis/h — pull request #446 by gergely-ujvari (2013-05-30 10:32:28+00:00)
Title: 364 forced login breaks workflow

The cause of the workflow break was that the ```onAdderClick()``` function in the annotator.coffee subscribes to the ```onEditorSubmit``` and the ```onEditorHidden``` events and cleans up itself after receiving either of them.

However, when we interrupted the workflow in the ```showEditor()``` function in the services.coffee we haven't published any of these two events, that's why it was stucked.

But this fix does more. In that interrupted case, after login, it restarts the process by calling ```onAdderClick()``` function again with the same event. So the user logs in and the editor window is showed, I think this is very user-friendly.

I've checked if there is a good opportunity to restart the process inside the siderbar frame, but after login all annotations are deleted and there is not a good way to smuggle back our annotation chunk. Restart the edit process from the start is a clean way.