add support for express 4.x

nodecast is not compatible with express 4.x. I made these changes to add support for express 4.x.