Changes to user and directory handling

Implemented a check upon registration to see if the user already exists.
Forced creation of user directories in upload.php in case of a directory
delete, without the user being removed from the userbase.
Comments on the code.