Added base support for a scripting engine.

It's really quite basic for now.