refactored code to bring ScriptPackSession back into the core

1. We refactor ScriptPackSession so it is just a data bag with some
methods.
2. That allows it to be easily passed to the engine which figures out
how to apply it.
3. We move the initialize and terminate into ScriptCs.core.