Allow repository installation to be optional

Fixes issue #48.
Merge pull request #49 from kiall/issue-48

Allow repository installation to be optional