added output class
ADded a shit load of doc comments, and removed some more tabs for spaces
Merge branch 'dev' into outputClass

Conflicts:
	deploy/system/Phire/Config.php
	deploy/system/Phire/Controller.php
	deploy/system/Phire/Database.php
added some doc comments
implemented output class (partial)
added mime_types config, added show error global function
updated output
minor optimsation upgrades