Add history traversal and page up/down.

Also make all defined functions run in pcall and unpack arguments and fix a couple bugs.
Fix main.lua to use textinput instead of textInput.
Added clearCommand, invokeCommand, and flush

You can now call and remove commands from the console as needed, also
fixed a() such that anything passed in is automatically tostring'd.

Flush will write the entire log to disk, very useful for debugging.
Might be worth doing automatically when the game quits or the log has
had more than a certain number of lines added to it.
Merge branch 'pr/5' into plus

Conflicts:
	console.lua
Fixed merge

Merging is a pain, it always has errors, fixed them all and now is up
and running

Shakesoda code merged successfull