Added POST activities/state

Needs tidying up clearly, but is this along the right lines?