Initial codebase

First iteration of the plugin code.