Add unit tests for Restlib.validate_response
wip
Ignore json errors in validate_response

Handle everything except 301, which is
still undecided.