drop references to libmicrohttpd
cache request handlers in top-level alist

to protect them from garbage collector
add some exception handling to tty input

don't crash on errors