refactor handlerName-to-handler mapping

this should effectively replace and fix https://github.com/lestrrat/peco/pull/21