Updated to express 4. Updated middleware to support express 4
Merge branch 'BarryThePenguin-express-4'
require morgan logger (moved out of express since version 4)
serve certain file types directly (no download)
allow simple editing for text-like files
fix downloading in preview view
putFile: add missing subfolder related code
more dir fixes