Switch the querying backend to Curb.

This also adds raising of exception when some http error occurs, instead
of silently "eating" it.