instead of receiving callbacks, have addCommandToQueue return a promise

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
return the promise created by add to queue

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
instead of creating it's own deferred, let _sendCommand use the one returned to caller

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
the callbacks don't exist anymore. Just let the promise be handled

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
unhandled errors are now thrown

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
whitespace

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
better testing for commands

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
Merge pull request #3 from inaes-tic/Lacrymology/fix-promises

Fix promises