SERVER-10026 some QUERY_MIGRATION cleanup
SERVER-10026 errmsg isn't real
SERVER-12102 the option to use sort, skip, limit implemented