Added gearman functionality

Still to be test