Move app entrypoint to main.go