Add assets group to Gemfile, update to Rails 4.0.5 for security patch

This PR will just organize our Gemfile a bit by adding the assets group. Also, Rails 4.0.5 is now recommended for a security patch (note: this is not Rails 4.1 which brings about many changes).