api.php cleanup https://github.com/openpeer/op-identity-provider-server-php/issues/46