Multiple fixes and upgrades for public sharing of folders

Fixed issue where password for locking files was not working.
Fixed issue where limits, password etc were not used from root (shared) dir.
Fixed download limit problems with value 0 inserted.
Fixed downloading of files.