Moved code common to mobile/wear apps to library project.