Started working on plugin-middleware communication
added initial migrations for middleware