simplified JSON parsing from request body + added client heartbeat endpoint

To get express.bodyParser to work properly I had to set the
Content-Type header appropriately.