Consolidate some glue into glue/init.lua instead

This means less duplicated code overall, so \o/