Simplify gemspec
Require rails for testing
Use dependent_restrict (new name for dependent_protect)
Fix rails 4 (requires symbol has/belongs associations)
Rails 4 and Ruby 2.1 testing