fixing this for newer versions of express. Also to use environment variables and app settings for web sites.
Merge pull request #1491 from Blackmist/fix-mongo-vm

fixing this for newer versions of express. Also to use environment varia...