Added relations between models
Fixed associations and added routes
Changed resource to resources
Added exceptions to routes