Improve pip_smoke_test.sh (#384)
Improve pip_smoke_test.sh (#384)

1) Refactor the test HTTP request into a bash funciton for modularity.
2) Previously, the script tested only the "/data/logdir" path, which
   means the test wouldn't have caught the breakage due to, e.g.,
   'webfile.zips' being omitted from package_data in setup.py, which
   has happened before. This change adds a check of the "/" path in
   order to cover that.
3) Do tensorboard process shutdown even if the test fails.
ioeric/tensorboard,francoisluus/tensorboard-supervise,tensorflow/tensorboard,tensorflow/tensorboard,francoisluus/tensorboard-supervise,francoisluus/tensorboard-supervise,agrubb/tensorboard,qiuminxu/tensorboard,qiuminxu/tensorboard,tensorflow/tensorboard,francoisluus/tensorboard-supervise,tensorflow/tensorboard,ioeric/tensorboard,agrubb/tensorboard,qiuminxu/tensorboard,tensorflow/tensorboard,qiuminxu/tensorboard,agrubb/tensorboard,ioeric/tensorboard,francoisluus/tensorboard-supervise,tensorflow/tensorboard,francoisluus/tensorboard-supervise,agrubb/tensorboard,agrubb/tensorboard,qiuminxu/tensorboard,ioeric/tensorboard,qiuminxu/tensorboard,ioeric/tensorboard,ioeric/tensorboard,tensorflow/tensorboard,agrubb/tensorboard