Use php5 style constructor, move exceptions classes to exeptions file
Refactor template classes (add comments, clean)
Move upload page to template