Add gradle script, K2Exception and i18n framework

Ignore previous request; missed committing a change on one of the files.
Noted. I'll add a K2Context with just a reference to i18n.Messages for the time being and restructure the code.