Several changes and additions to platform agent framework for R2C4

Although not complete, please merge asap.  thx