Updated Gearman handler to use more dependency injection
Fixed unit tests
Updated doc