cleaned up dependencies
improced connect/disconnect/reconnect handlind
Merge pull request #10 from mleich/master

improved dependencies and connection handling