Plugin move

Changes to code in plugin folder, as well as core changes to make plugins work.

Tested add_noise and levenberg plugin -working using borland. Works fine
Ran all visual studio tests, nothing broken there.