Firefox-JS: Fix context leak in createContext.
Merge branch 'master' into createContextFix

Conflicts:
	firefox-js/js/webcl.js
Now checks that 'properties' is an object
Check that properties.platform is a valid object
Return null instead of throwing if deviceType not found on given platform