Refactor: libcib: Functionize processing cib_file request
This will allow us to process requests in a transaction in an upcoming
commit.
Pulling parameters out of the request argument (instead of accepting the
parameters as arguments directly) will simplify the implementation of
transactions.
Ref T185
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>