updating lib to support express 3.1.x and connect 2.x