Synced storage and minor tweaks

Use chrome's synced storage for the redirect url. Also, use a chrome "event page" instead of a background page and use https to access database.