Small fixes to error handling
Add qunit tests for WebCL API.

* Initialisation tests
* Program and kernel creation tests
* Buffer tests
* Processing tests