AURORA-58: Cache hashCode in generated immutable classes.

I've also silenced the code generator output by default, cleaning up the output
when building via gradle.

Bugs closed: AURORA-58

Reviewed at https://reviews.apache.org/r/17088/