Make GetInputState public.

This is so that the UI observing the console can show the correct state
info.
Implement basic console log and exec.

Issue #190.