client overhauled

functions converted to xml, sync function redesigned, first version of
bilateral synchronisation implemented, windows account encryption
implemented, little code tweaks, obsolete code marked or removed, client
api methods redesigned, user data and app configuration in files
outsourced