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

...bles and app settings for web sites.

Closes #6