Add gradle script, K2Exception and i18n framework

Ignore previous request; missed committing a change on one of the files.
Nit: please use /* style comments for multi-line comments in java files:
/*
 * Copyright