Let's run the analyser when building.
Provide a "User Cancelled" error so we don't crash when canceling "New".

Closes #275, #220.
Only directories, please.
Make "Clone" an alternate of "New", and wire it up to the document controller.
WIP: Redo repository cloning.