Add basic test for TensorService and properly implement RiemannTCP.stop method.
Always use protocol from factory so events go to the correct protocol instance after reconnect.
Merge pull request #6 from jerith/feature/send-events-after-reconnect

Send events after service reconnect