Use passed-in config object to create app