CR-1 Created model relationships

I added model relationships and the beginnings of some rspec tests.