added prelude-ls to the dependencies
moved the example code to documentation for StateMachine
properly named the state machine class
Now using the StateMachineStream for the Service implementation. Split out Service into Service and Server.