rest: Move all middleware to middleware/
rest: prefer --data over --form in docs

--form implies "Expect: 100-continue" header in curl which slows things down.

http://www.iandennismiller.com/posts/curl-http1-1-100-continue-and-multipartform-data-post.html
http://devblog.songkick.com/2012/11/27/a-second-here-a-second-there/