Update gems
Fix issues
Rewrite associations
Fix deprecations