Updated emulator to use current messaging protocol used by controller/Arduino.

Also added a few boundary checks.
Added a controller init script to only run the emulator.

Added a supercollider snippets file that has snippets useful for debugging
supercollider-related code and interfaces.
Moved emulator- and Arduino-specific code into separate classes.