Try/Catch JSON formatting of response

Added a try/catch statement to the parsing of the server response in foodlogiq-client. If the response is not JSON formatted, the client throws an uncatchable error. With this code, the error is much more likely to be properly passed on to the next function.