Add community join functionality

Fixed also various other things I don't remember