Refactoring network code into gerrit-api.js.

Make use of newly available JavaScript "promises" implemented in Chrome.
Moving from "persistent" to "event" background lifecycle model.
Reloading extension on changing options.
Slightly better popup list style.
Adding lots of debug output.

Background.js will trace to console for most events.
Popoup page dumping json data as tooltip.