Move slapd/certificate commands out of .travis.yml into their own scripts

Reduce the manual repetition of lots of commands and avoid potential
inconsistencies, while also making the .travis.yml file a bit more
readable.