Changes structure to use class autoloading

Class autoloading was long needed to make use of the last versions of PHP Markdown Extra and PHP Smartypants.