Fix bug. Use shift to get the first callback and not unshift
Merge branch 'ql-refactor' of github.com:rethinkdb/rethinkdb into ql-refactor
Merge branch 'ql-refactor' into sam_ql_refactor