Added gitignore for txt files to tps folder
Added fileWrite, fileRead, outputEcho functions to common
Updated upload.php to use the new common functions