Import from https://github.com/andxor/restler-q/raw/master/lib/restler-q.js