PHP 5.3+ compatible custom application class UNTESTED