Framework for building Gearman listeners in PHP