Basic plugin build system.
Plugin refactor.