zorpctl: extracted some methods to be more testable
zorpctl: moved HandlerMock class to its own file
zorpctl: added more unittests