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.