main: add filename to window title

Signed-off-by: Yannick GICQUEL <ygicquel@gmail.com>
main: open html or docbook files regarding their extension

Signed-off-by: Yannick GICQUEL <ygicquel@gmail.com>