Disable webcam stream when control tab is not in focus.

Fixes #316
More intelligent handling of disabling and re-enabling the webcam stream.

See #314
Fixed sending of command again. Also now make g and m codes appear in uppercase automatically.