various fixes

1. fix #1035 by ignoring more markup tags in dictionary window
2. fix #1064 by adding timestamp of document in cache key
3. showing confirm dialog as modal window and previous MuPDF refactoring also fix #791.