Application messages, i18n

rather than hard coded text
More i18n and some irrelevant stuff
Slight refactorings
Bug in raw tx encoding