Updated handeling of Accounts, added "getcurrentpath" for upload.