Set paramater order on sort-related routines so that the vector being
sorted/searched/etc. is always first.
Fix order of nans2end.
Allow function arguments as first paramter of sort functions
Sort updates:

* Add sort versions which take Functions as first argument,
  for use with "sort(x) do a..." syntax
* Added (but commented out) select and selectby functions
  for same.
Minor updates.
Fix sort versions which take a function as the first parameter.
Actually make taking a function argument work...
Finish cleanup of allowing function arguments first.

* Added (but did not export) selectby, sortpermby
* select, selectby, and sortpermby can take function arguments first
* Added basic tests
deprecate pairs, countp, anyp, allp
count is now just count(predicate, collection)
Merge branch 'master' of github.com:JuliaLang/julia
vec: better error message and correct behavior for empty [close #2214]
exports: mark some functions to not be exported in the future.
Removed some glpk leftovers
Small fix to bitshow
parse: now with no position arg, returns no position arg [close #2215]

It will also throw an error in that case if it hasn't consumed the
entire string. If you need more fine-grained control, then you ought
to call it with the positional argument and check that.
vec(a): change this to mean the vectorization of the tensor a [#2214].
rename resize to sizehint, remove constructors with size hint arguments
replace grow! with resize!
closes #2217
Add documentation for new integer bit-query functions (#2159)

Conflicts:

	deps/Rmath
tiny fix