Added error message (code: 400) when json model cannot be parsed

When a user submits a dataset via the api and the model cannot be parsed openspending just fails and gives a 500 error. This catches that error and gives the user an error message.

Fixes #727