Changed API to behave like a 'real' plugin.

This temporarily removes some of the existing functionality.