Restructure flask_pluginengine