Added Terminal device, expanded Device object.
Added the Terminal device object, which displays graphics and captures input. Also expanded the Device object to be partially compatible with EventTarget.