Core script engine

Not finished, please don't touch yet!