Sharing functionality

Still work to do for sharing with groups.