Moved async loop into own module. Updated config to use recommended environment-specific pattern. Set tests to run of different port.