Move the watchpocket API definition to a background page javascript.

Move the watchpocket API definition to a background page javascript. Other files talk to the API by calling chrome.extension.getBackgroundPage(). That is for simplifying communication between content scripts, extension scripts and backgrount scripts.