Refactor some function names of common-opencl.c (prefix with opencl_).
Add some comments and drop some obsoleted stuff.