Update fossil to 1.27, and enable the JSON API.

Fossil 1.24 is pretty ancient, this updates to 1.27, and enables a new feature by default.
The new feature adds one new command, and no new dependencies. I'm not sure what the policy here is, exactly, in nixpkgs, so I can make it off-by-default if that's the way of things.