Use snap-cors for Example.hs
Implement heartbeat support