Factored out utility functions, added licenses, externalizd configuration.