Leave input mode if a form submit loads a page.

Also remove the old vb_set_mode function that become obsolete.
If possible use g_strconcat instead of g_strdup_printf.
Removed string length restriction of vb_echo functions.
Set mode according to current focused widget.