implement UI for multilingual statements

also refactors some JS code
use the jsEdit generic code for the bitcoin input
use the jsEdit generic code for the username input
fix tests