Threading improvements.

Made switchState call happen within update, so _state.create() runs on the same thread as _state.update().

Fixed strange physics issues on Android.