Express 4 and middleware upgrade