Fix and simplify package_data logic in setup.py

Include subdirectories when searching for sampledata.
Use a sub-shell for `make all` in .travis.yml
Fix sphinx/build_gallery.py to work with Python 3
Fix open()'s mode in sphinx/build_gallery.py