Add appstats
Convert handlers to being appstats compatible.

Had to run "go get github.com/mjibson/appstats" to get it to build, that fails with an error about not finding hg, but gets enough of the code to let appengine side build