EventHandler.assign_devices.

Also fix bug: Input._ehs broken because EventHandler unhashable.