Use JSON API errors

We would like to return more useful, consistent, structured data to
clients. Testing out this approach for dashboards, as discussed.