Fixed .net 4.5 issue, cleaned core.cs

Reverted plugin for re-write. Removed all but connect/disconnect