Dropped some old unecessary code.
Added upload progress bar and fixed some redirect issues.