Refactor: tools: New cibadmin pre-CIB function
The idea is to do any necessary prep work in pre_fn, then send the CIB
request, then have a post_fn that handles the return code and processes
the output.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>