Fixed client side to terminate connection on re-connection
Added form to change server configuration
Added 'client-term' handler in ui.js
Removed some old TODO's
Fixed handling of server disconnection
Fixed client-term handler
Minor bug fix