Move functionalities out of the theme

Remove the WordPress and Github repos API from the theme to put it in a future utility plugin.