Add support for plugin provided API resources.

Change-Id: I201461e255edb1bc5ca35e9c8c989cb777bb2924