Fix error when calling repo_host when local_repo could not be instan

For example, when running git clone - def local_repo(false) returns
no object, so hub falls back to calling repo_host on LocalRepo class,
which fails as local_repo is an instance method.

The 2 places affected were GithubProject initialise, and api_user