new commit

Did a little refactoring/ reformatting. Make printing to webview work,
and put a check in for the bluetooth subsystem being alive. (Note:
Printing to the webview can require calling a method from a different
thread. This is deprecated, and might go away. I'll investigate later.)