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