Catch ``ValueError`` in ``api_call`` decorator

When json response is incorrect ``api_call`` raises ``ValueError: No JSON object could be decoded``. I propose to catch it and raise ``ServerError``.