support ctrl-d in normal mode

like https://github.com/joyent/node/blob/master/lib/readline.js#L669
create test for ctrl-d

depends on https://github.com/thlorenz/readline-testharness/pull/1