New versioning model
Fixed error with application controller. Moved has_many reference from controller to model