Refactors FedoraConnectorFunctions.php.
Cleans up FedoraGateway.