Add dynamic sharetype registration system to build xt.share_users without hard coded UNIONs.