Moved all the instance stuff into the CoC-class. HOLY SHIT CHANGES.

Basically, I need the parser to be able to call functions by name, and with all the functions defined the way they were (anonymously, as instance methods), there is no way to access them dynamically at runtime.

As such, I've moved all the instance stuff so it's now all member functions of the CoC class.

Anyways, it seems to work fine, but I'd appreciate if someone else could pull the branch, and do some poking before it gets merged back into the master.