Teach MBTiles.py to serve JSON

What it says on the tin.