Tiny cleanups to piweb.go - but it's still a quick hack.