Sanitize filenames, implemented pathinfo,

- 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.