Respond to duplicate dashboard slugs with a 400

Standardise errors from the dashboard endpoint by always returning
JSON.
Add a serialize method to a Dashboard