handle errors properly

When an err is returned such as as unreachable host (etcd is down), the resp
object will be null.
Tests and fixes for responsehandler
response error handling, closes #16

* smurthas-master:
  Tests and fixes for responsehandler
  handle errors properly