Move the bulk of the raygun logic out of the bin and into the lib.
First stab at using the github api to fetch the latest tag - WIP.
WIP