Clean up some lua binding and console stuff.