Labs: automate federated table maintenance

Bug: 63384
Bug: 59682
Bug: 59683
Bug: 57876
Change-Id: I697f9f3440e289931675edbf1a5efcf581f0dcf2