Moved heartbeat functionality into its own folder, and fleshed out
asynchronous packets.