Move Github repository support to separate file

Clean up repository.go and move Github support to separate file.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>