wrapper for errors on superagent json requests

for #207 

<!---
@huboard:{"order":208.0,"milestone_order":208,"custom_state":"ready"}
-->