Add gradle script, K2Exception and i18n framework

Ignore previous request; missed committing a change on one of the files.
Hmm - even github doesn't like the final line not having a newline. Please add one.