Adds runtime server for tests.

Correctly implements file system access abstraction with promises.