some code cleanup
Rename Connection to Server and fix some other naming inconsistencies
Split off connection code to a seperate class
Basic test case for listShares
Don't pass the password in the shell argument

this should prevent some issues with escaping
Fix passing of locale
Basic caching for dir result