updated for express 4
Merge pull request #1 from jywarren/master

updates for express 4 compatibility