Always use json.MarshalIndent.

Also move boilerplate HTTP stuff like Content-Type.