Convert the code in `src/core/colorspace.js to use ES6 classes
Convert the code in `src/core/colorspace.js to use ES6 classes

Reduces the amount of boilerplate code when defining the the sub-classes.

Please note that a couple of the closures were kept, since it's not (yet) possible to include helper functions inside of `class`es.

mozilla/pdf.js,showpad/mozilla-pdf.js,Snuffleupagus/pdf.js,macroplant/pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,xavier114fch/pdf.js,timvandermeij/pdf.js,caremerge/pdf.js,mozilla/pdf.js,Shoobx/pdf.js,showpad/mozilla-pdf.js,nawawi/pdf.js,timvandermeij/pdf.js,macroplant/pdf.js,showpad/mozilla-pdf.js,Shoobx/pdf.js,xavier114fch/pdf.js,nawawi/pdf.js,mainegreen/pdf.js,macroplant/pdf.js,Snuffleupagus/pdf.js,mozilla/pdf.js,mukulmishra18/pdf.js,Snuffleupagus/pdf.js,mukulmishra18/pdf.js,Shoobx/pdf.js,caremerge/pdf.js,mainegreen/pdf.js