libraries/github: refactored reuseable code into plugin_base

Also removed some unnecessary authenticate() calls
libraries/singularity: updating log messages cause funnies