big hack in index.js - need to move auth stuff into event_page and ui stuff into a polymer element to inject with a content script.