Clean deleted buffers automatically

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
Only send noidle if latest command was a idle

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>
Fix a bug: if user is too fast, handlers accumulate and mpdel breaks

Signed-off-by: Damien Cassou <damien.cassou@gmail.com>