Added second argument to `expr` to support maximum expression depth.
Add libcurl to debian package dependencies

Review 1534 by @Tryneus
Related to #2400
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next
Fixed tests.