Autodetecting github repo

Closes #1