KORE milestone 1

**do not review just yet, but be prepared... **

 - unit-tested convertors from KORE to KIL and back
 - significant changes and simplifications to KORE data structures. They are smaller and more powerful now

I've commented before on this. If you don't do this in the finally block, you won't save the cached rules.
However, it wasn't correct before either. You will have to catch the error and rethrow it, instead of printing the stack.