Fixes #4
This isn't an amazingly pretty fix, or probably a good one,
but the program's architure and my nodejs knowledge isn't really good enough to do better for now.
Server now outputs the status (on, off etc..) via socket.io too.
Listen for "statuschange"