Fixed 32/64-bit bug in actions.py, added unit tests.
Changed sseserver.py to better handle logging levels and command line flags for verbosity, debug output.
Better handling of lost connections, adapted dependency injector (factory caller) to make it suitable for Python 2.7.