added gemfile, add non-backwards compatible support for rails 4, and
fixed tests to account for rails 4 changes