Separate gitlab, ci, and database recipes

In order to make portions of this cookbook installable separately, this
commit moves cross recipe dependencies into a helper library.