Moved cloud service logic to separate lib project.