Update gitignore and add charset to html doc

Also add some cache directories for Travis