All relationships mapped

All of the relationships are now mapped. Next task is to make Oauth use
doctrine.