Extracted out module loading functionality.
Merge pull request #14 from immortius/develop

Extracted out module loading functionality.