Shared gl context

@aashish24 Here is the share GL context changes, please review. I added a test for it testing/glTwoRenders.html.