Add express4 support to rearrangeMiddleware. Make sorting stable.
Readme update to support express4