added connector interface basics

this will enable plugins to communicate with the main page over a
secure channel. necessary for data storage. this way plugins do not
need to send their own xmlhttprequests.