improve session.publish robustness. Prevents session.publish from being called multiple times
add and test iOS beta 3 framework Fixes #26