switch to plain file streams rather than JSON
make most headers private
remove usage of relative paths
fix build
Merge pull request #622 from mapbox/private-headers

make most headers private