Add support for more templates

 - built-in classes article, book and report are now supported,
 - beamer template added.