use dispatch library in goapp. Normalize dispatch paths and template directory names.