Set up code

For @danizord @Ocramius 

This is a rebase of my old work on ZF2 repo for ZF3.