Geographically, the empire was divided into several provinces, the borders of which changed numerous times during the Umayyad reign. Who appointed the khalifah?