Add option to only load repo when sidebar is opened

This is related to #80, and adds an option to only load the current repo when the sidebar is opened. It should work fine with the "remember" option as well, and automatically load if the sidebar was shown last.