move template-related code to templates.go
move http handler setup to handlers.go; /logs handler to log.go