Fix Categories conversion to Doctrine 2

This is a stub ticket for collaboration.

The current state of this branch is it installs, but Categories don't work. Visit Categories admin view to see. I'd like someone else to look at this branch and work on it. 

/cc @Guite @tfotis @phaidon @craigh @planetenkiller