added ProposalRegister;
AgentRef is now a trait, the implementation moved to impl;
moved it to appropriate file.