Autoload the Upload class 1/2

+coding conventions
Autoload the upload class 2/2
Autoload the Tpl class
Autoload the Tpl class 2/2
Autoload TdbFunctions

+ coding conventions