simplifying the way platforms resolve their promises. issue #82
make the platform and other variables global to the session module
fixes for tests in issue #82
fixing test issues
fixing test issues