Big fixes, router corrections, directory separator fix, improvements on the upload module