Adding a synchronous mode for the request module.

It is now possible to specify the sync option for noder-js/request,
and a synchronous request will be made. The return value will still
be a promise (not to change the signature), but it will already be
in the resolved state. Promises now have doneSync and failSync
methods which, when called on an already resolved promise, call their
callbacks synchronously.