Log function to netdisk.functions.php & session folder.

The log destination now be customized and the level output specified
for each message as needed.

The ./session folder is now the default location for session data.
Make sure it is "Owner only" permission, or change to your system
default directory when running on the web.
Substantial changes from the original version.
The upload still does not work, but almost all the NDAS
operations are managed by PHP.
Log files only need to be blank. Add them to gitignore after ward.
Merge branch 'master' of https://github.com/iocellnetworks/netdisk-cloud

Conflicts:
	php/config.php
	php/netdisk.error.log
	php/netdisk.functions.php
	php/netdisk.sessions
	php/netdisk.user
Some tweaks to config file. Add session dir.
Logviewer in admin, and defaul config file for future use.
Several changes. Fixed up default installation on a plug. There are
notices about missing rights and programs needed for operations.
Also added the clear log function. Changed register and mount ro
to php scripts.
New password hash, Default setup, Admin file access, No cgi

Changed the password hasher to the blowfish model now suggested by
many. Got file access again for admin. Created a sort of default
config scheme where the system has not config file to start with,
and forces the admin to make one, as well as set the admin password.
Maybe all cgi functions are now unused. We'll have to see as we
move some files.
Admin can upload a file now. But download is still broke. Needs
to enc decode the file name and path.
Use symlinks to read the files.

The NDAS might mount to a different location than the web root.
A way to get the files is to use a symlink in a web accessible dir.
It need testing, but for now, admin can get the files.
If it works, it will have a folder for each user to download files
from.
Index.php in the files/ folder is hoping to keep surfers out of the
links that remain.
Confirm delete, hide delete if dir is RO.

Used a javascript to confirm deletion. NDAS function to test each
directory then hide the delete button if it is RO due to permissions.
Umount is now preferred for dismounting the drives.
Try to mount RO NTFS with errors. Fixed RW NTFS false error.

It is OK to mount some NTFS partitions RO even if there is some
error, so on the RO NDAS especially, we can try to mount them.

The writeable check function was sending back the device name
with the RW indicator if the partition is ntfs. Now it only sends
back RW.
Add index to the session directory.