Fix a severe bug in AutoSwitch
Renamed CreateAutoSwitch() to CreateSmartSwitch()
Smart switch toggle
Simplified main.lua, using SmartSwitches
Reusable EventEmitter
Fix global events, act I
C code does not use object call
Uppercase letters in SmartSwitches
Fix TCP/IP context swtiching
Renamed *Changed events to *Change
Change event name in main.lua too
Fix self in non object context
Removed duplicate code
Update RailMon interface. Add CFF clock
Renamed CreateSmartSwitch to CreateSwitch
Switch object is now an EventEmitter
Switch sensors 1,2,3 are now A,B,C
Move cleanup code out of EventEmitter object
JSON:Encode() initial implementation
RailMon easy bindings to global events