Syncing ExportedState with Secmgr

To make this CL easy to follow, will leave fixing existing code style issue in
ExportedState and ResponseParser in the next CL.