Implemented ScriptingManager

Implemented Scripting through LUA. Also upgraded the input manager a
little bit.