Update gemfile source
Require rails for testing
Add license
Use dependent_restrict (new name for dependent_protect)
Fix rails 4 (requires symbol has/belongs associations)
Rails 4 and Ruby 2.1 testing