remove duplicated code from mcollective::agent

mcollective::agent and mcollective::agent::actionpolicy configure the
actionpolicy for agents, mcollective::plugin installs agents and other plugins.
seperate.