Disconnect method

added a disconnect method to the client script and attached this method
to a disconnect button.
commit .gitignore
commit .gitignore