Some changes to all.bash to honor bad exit statuses.
Added the initial Slave struct.
Fix a compile error.
Change channels to pointers. Also, added code to receive heartbeats.