Added logging of thread state changes; added external command queue
1. Log state changes
2. Improve presentation of log data on browser
3. Re-implement external command thread using libwismart's LinkList API