Adds progress and status updates to downloads

Adds missing semicolons in file.cgi
Moved setting of download status fields to functions to allow access from
event listeners
Adds more functionality on update

Fixes references to this which should actually be this.target
Adds more aliases in updateProgressBar for ease of troubleshooting,
specifically in problems with low percentages
Fixes progress bar mangling

Converts progress bar variables to integers
Fixes bugs in login and file transfer

Adds quotes to file path for openSSL
Blocks session login before attempting to use nonexistent user ID (caused error)
Fixes user permissions in add_media on server
Escapes $ in file transfer

Was trying to use perl's $1 instead of bash $1
Updates download info

Adds more precision to progress
Fixes variable clashes in parseSize/parseTime
Uses the time set in fAPI as opposed to a new date for start time of download
Changes transfer speeds into bytes as opposed to kilobytes