Adding launch log line
Make state handling closer to nagios, add tests

Did some work to allow state changes to more closely follow those
detailed here: http://nagios.sourceforge.net/docs/3_0/statetypes.html

This involved breaking out 'execute_task' from 'handle_task' in order to
write tests to ensure that the logic is correct.  So far so good.