slight refactor to allow integration into rails 4.0
added rails 4.0 gemfile