Update AR and AS to 4.0.4

Before updating ruby to 2.1.1 (#1522) . We need to make sure we are running AR, AS 4.0.4+.

read this http://blog.sorah.jp/2014/03/10/hash-reject-regression-in-ruby211