Interfaces for a gearman worker implementation

New interfaces WorkerInterface and JobInterface and
a partial implementation of both.