added err out
switched to q deferred instead of node-promise (which for some reason hides away a stack trace)
updated doc tests
handle non-zero status codes in devtools