Upgrade ghost to v0.4.0
Merge branch 'upgrade_4.0' into develop