refactoring of krake slave to include unit testing
Merge pull request #1 from KrakeIO/unit_test_refactoring

refactoring of krake slave to include unit testing