Add tutorial generation to the Travis script

This pull request adds generation of tutorials (including advanced tutorials) to the 'doc' task on Travis. The script is not complete as it does not push the generated files anywhere.