Merge pull request #1521 from hswolff/ghost-as-a-module

Ghost as a module, fixes #1326
Create the config module, initially used
to standardise getting paths and absolute URLs.  Easy
to extend for other configurations we may need.