Implement input sending.

As of this commit, you can actually play through the web interface! Make sure
to also use the latest Dfhack Dfterm3 plugin.