Add gradle script, K2Exception and i18n framework

Ignore previous request; missed committing a change on one of the files.
NIT: Please remove this blank line. It's just a nit, but I think it's nice to be consistent, and the easiest is just to remove them.