modMgr

port of the moduleManager from https://gist.github.com/theodox/8414494