middleware and server updated

middleware and server updated, as well as bower and npm dependencies