Improve building RPMs
Centos 7 has ruby2.0 we need at least ruby 2.2. But we really only need the ruby code for creating the endpoint in the first place. So try todo that in aa.c as well. Also let's use centos-8 for all of this.
Also fixed some small memory leaks (that resulted from early exit, so where mostly inconsequential)