Refectored LibrarianSync code that was becoming somewhat horrible. Added check for cloud collections support.