Automatically start the microphone state monitor with the dictation server.

Since we’re mostly running these servers without console windows, add simple logging to a file for each server.  Change to the script's directory so we write somewhere (reasonably) sensible and can omit a few more absolute paths.

Also add a clean “stop server” method and corresponding client script.

Note that the AutoHotKey script does not terminate, because we cannot intercept a Windows TerminateProcess with a Python atexit or anything similar. However, the worst issue this may cause is a notification bar appearing while Word is active.
Only strip the white space at the end of the dictation buffer.

This allows us to dictate new paragraphs and so forth to be inserted at the insertion point.