Added sanitation of filenames and usage of pathinfo. Changed filelinks and filename uniquefier.

- Filenames are now stripped of spaces and illegal characters.
- Pathinfo is implemented to extract filename and file extension.
- Files keep their original filenames and will be numbered in case of
duplicates.
- Removed routing of filelinks to getfile script. Files now link to
their original location on the server.