public bool CreateAccount(string AccountID, SignedProfile Profile) {
// Validate the signed profile
if (!Profile.Validate()) throw new Throw ("Profile not valid");
// Create the new account on the portal (fail if already exists)
var Account = new Account();
Account.AccountID = AccountID;
Account.Status = "Open";
Account.Created = DateTime.Now;
Account.Modified = Account.Created;
Account.UserProfileUDF = Profile.Identifier;
//// Allow accounts to be searched by the profile they link to:
//var KeyData = new IndexTerm(KeyUserProfile, Account.UniqueID);
//var KeyDatas = new List<IndexTerm> { KeyData };
PortalStore.New(Account, Account.PrimaryKey(Account.UniqueID), null);
// Push the profile out to the Mesh
MeshStore.New(Profile, Profile.Identifier, null);
return true;
}