Add cache

* add debug and logging
* add clear cache option
* update popup menu from cache
* fix bug, don't try to open default popup message as git dir! ha!
* check if isGitDir when opening, catch and use errordlg instead of stderr/stdout