Copying in https://github.com/tombye/express_prototype