Set correct Content-Type header for json

Hi,

I noticed that accessing /heartbeat correctly sets the Content-Type to text/html but /heartbeat.json didn't set application/json.

This pull request corrects this :)

Ash.