Run emulator from the remote server

These are required changes for running the emulator from out remote http server.