enables dir to be module.
updates settings for production compatibility.
Merge pull request #5 from birkin/master

updates settings to allow debug=false