Add support for registering for GitHub rsubscriptions too

Also refactor things into a class to avoid shitty code.

Change-Id: Ie86d5852e0e983c0223966cf73a5236651717107