Implemented scripting system, added groundwork for the console history.