initial test plugin api

@ianstormtaylor got these basics working, just delegating to the integration-tester for the moment. any suggestions so far?