added support for multiple webgl contexts
improvements everywhere