Pass connector directly to connect() instead of using name.
Rename "modules" to "domains" to prevent confusion with node/require modules.
Merge pull request #81 from leftclickben/MoreRefactors

More refactors