Container aware worker

This is a tweaked version of https://github.com/hautelook/GearmanBundle/pull/19