Simplify tmp logic to use only one tmpid for style/source. Refs #493.
Lazy tmp write logic.
Merge pull request #563 from mapbox/one-tmp

One tmp