Move get_repository_id() to its own file.

This moves get_repository_id() out into rbtools.util.repository, so that
it can be used by more than the status command.

Reviewed at https://reviews.reviewboard.org/r/4729/