Give plugins access to  api

These commits allow plugins to handle web requests coming in from /_api/_plugins/pluginname/_api

The plugin needs a to define a file `api.js` in the top level of its package.