Fix invalid post data

If invalid JSON, or data which is not deserialisable is submitted, TasyPit will return a 500.

Instead return a 400 to the requester.