more fixes

fixed clientside heartbeat issue
restful sample is working and should be done
started work on the chat room demo