Fixed the runtime assertion that data_buffer_t has a certain size, added a static assertion and a runtime assertion that the value passed to data_buffer_t::create is in range.
compilation fixes to JS files
Fix the clang build.
Fixed build problems with datum_t constructor not taking a long.
Merge branch 'ql-refactor' into sam_ql_refactor_compile
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next
Merge remote-tracking branch 'origin/next' into sam_ql_refactor_compile
Made things compile under clang in debug mode.
Merge branch 'sam_clang_debug' into sam_ql_refactor_compile