move init code to api.initialize() so it can be reset on options change. Warn on missing config in popup. Start function doc.