Changed stateId parameter to profileId parameter

It looks like the text from the State API was copied into
Agent Profile and Activity Profile
Merge pull request #462 from chrishandorf/master

Changed stateId parameter to profileId parameter