Updated upload procedure.

Updated upload page, and moved code into src folder.