Added initial invalid JSON messages

Added the framework for explaining why JSON was invalid so teh user can fix it. Added error check to responses from cjdns.