firefox login

Move content script code to popup.html.

Get rid of crypto, it's not available in firefox web worker.
ui.js appears twice here.  Should one of these be ui_enums?