Updated to Express 4

Updated express to version 4.

This required updating and adding new modules to be express 4 compliant
since much of the middleware was removed from express 4.

I have also updated all the routes to take advantage of the new routing
system in express 4.