Rails 4 support, fix stack error, loosen bundler requirement