Add hydrator factory

This needs my PR for ZF 2.2 to be merged (so obviously this needs ZF 2.2). If it's ok, I'll add it to DoctrineMongo too