Upgrading to express 4.
Merge pull request #324 from MaxCDN/express4

Upgrading to express 4.
Remove unused connect module
Seperate middleware logics to their own function
Fixing express 4 issues.
Merge pull request #325 from gergelyke/develop

Minor improvments
Merge branch 'develop'