Adding incoming plugin framework, functions and event.

Plus got rid of unnecessary files in the repo root.