Be more defensive when posting the result.

* Catch all classes of errors in rt:post_result/2.
* Avoid running mochijson2:encode/1 inside the catch block, return
  `error` from the block.
* Match on the return value of rt:post_result/2 in
  giddyup:post_result/1.