Rewrite of autoload functions and added support for PHPMailer classes.