Refactoring backup system api + Allow plugging auth service for api