First run at modules
Converted earlier Github API request function to an exportable module