Implement local test server, cleanup imports