Starting to refactor demos/main.go to use go-util/base package.