Rewrite of FedOAuth to modular architecture