Moved code from core to input, ship, and util.

Added keydown and keyup listeners to the canvas. Added 'tabindex="1"'
attribute to allow it to receive key* events.

Added ship and ship movement.