Implementing request interface
providing callbacks called when the operation completes,
as well as a reference to the operation's result.
syntax check
use request onerror handler on callback exceptions also
request : removing successCB, errorCB as parameters in callMethod
and using 'then' method instead
(allowing to standardize 'this' in callback)
Merge pull request #13 from fpaut/request

request : removing successCB, errorCB as parameters in callMethod
request : Bug fix
Merge pull request #14 from fpaut/request

request : Bug fix
request : adding 'signature' parameter
(for nodejs compatibility and future use)
Merge pull request #15 from fpaut/request

request : adding 'signature' parameter
eval method result in a try block
request onerror callback: args for apply is an array
Merge branch 'master' into request
bump version 0.4.0
cloudeebus.Request implements DOMRequest as defined in
http://www.w3.org/2012/sysapps/runtime/#idl-def-DOMRequest
Request.result is an object, not an array. If the DBus method returns several results,
only the first will be in Request.result, but all results are passed as parameters to the onsuccess handler anyway.
implement basic DOM Future and FutureResolver mechanism
implement FutureResolver.resolve
call resolver's accept and reject synchronously in the callMethod async handlers
fix resolver's resolve method: accept callback calls resolve, not accept
adding Future static methods: resolve, accept, reject