Add tests for tm util functions.
Tests for source.tmpid, source.normalize.
Consolidate tmpid gen.
Merge branch 'master' into source-mbtiles