Adds devise and acts_as_relation functionality