Added support for switching OPI buffer to emulator

Fixes #107
This uses a new property (errors.prefix) rather than relying on oz.standalone and magic values in the emulator.
Merge pull request #135 from yjaradin/fixBufferSwitching

Added support for switching OPI buffer to emulator