Implemented Register and heartbeat
changes
Revert "changes"

This reverts commit ee36031de308ae67d6421a59cca2e57c4ecc123c.
Revert "Implemented Register and heartbeat"

This reverts commit 169f59929c0c8152ed69e69724dbc2fd5ec97a01.