Make it possible to require ghost as a module. fixes #1326
Merge pull request #1521 from hswolff/ghost-as-a-module

Ghost as a module, fixes #1326