Add Brakeman gem and upgrade to Rails 4.0.2