Upgraded rails to 4.0.4

Rails 4.0.4 has been released! I was testing discourse against 4.0.4 to see if there are any regressions on rails side, but everything seems fine, so maybe we can apply this to discourse master as well? :smile: