move all the server code into "jb/main.go"