Use a state flag instead of two boolean flags in the remoting code.
Merge branch 'nat' of https://github.com/mozilla/shumway into nat