Refactor Github to receive repo via constructor

Simplifies the whole class and moves the slug parsing to a more natural
place.