Allow proper CocoonJS scaling under WebGL

Re Github issue #99

Also implement better orientation awareness.