AS updated to 0.5.0

AS 0.5 [requires](http://tools.android.com/recent) Android gradle plugin 0.9+; therefore the second commit.