Use tiletype to detect PBF format

- Revert assumption that info must be written first to an MBTiles file by replacing getInfo calls with tiletype.type calls to determine tile format.
- Use gzip by default for compressing mapnik vector tiles.
- Adds test for deflating legacy deflate-encoded mapnik vector tiles on getTile.