-- UNIX bash scripts for polling in a loop (to be used with cron) -- Added multi-threaded test code (debug2 to-remove) -- First stab at state-machine of profile registrations and what state triggers what func