Add more stability
- check if sshConnection instance is alreade created
- disconnect from ssh on application end
- connect(): Check if connection is already present
- connect(): Check if session is already created
- connect(): use isConnected() to check if connection is present
- disconnect(): add this function
Fix "Package Corruption" Bug
If you lost the connection and try to connect again, you get
an "Currupt Package" error and can not connect anymore.
The Session need to be create new on this fault. so we create a new
session if an Exception occure.
Add connection state
- replace "Test Connection"-Button with "Connection State"-Switch
- add disconnect function to main-app
Edit-Activity now exits correctly on "Cancel"-Button