Main window: Use import library for importing plugins.
Remove Mercurial files.