Revert "pass in agent config instead of a real agent, to prevent the agent being instantiated without a dimension manager, leading to all kinds of issues see https://github.com/opengeo/mapstory/issues/535 for details"

This reverts commit 64034bd2794ca56e4671cb9d86d0db20e9b6f1d2.