Fixed issues with loading/updating plugins

Forgot that you can't replace a DLL while it's being used. Changes that
I made should get around that issue. Also started on actual individual
plugin code.