Refactor to allow plugins to use module's logic

Simplifies the plugins.

Thin plate still not working right in this version.