Rename variable model to agent in agent POST

This looks better and is more consistent with how we name our variables
in just about every other request handler.

No change in functionality.