Move plugin init code into plugin.js and have it called from server.js
Merge pull request #1462 from hswolff/plugin-init-cleanup

Move plugin init code into plugin.js and have it called from server.js