Make preference a query parameter

Move preference from request body into a url paramter so it can be
reused in various requests types.
Merge branch 'master' of github.com:fullscale/elastic.js