Agent target info

Updated the UI and heartbeat message so that the UI can properly recover state in the event of an F5.
@intern-felicco @abnanda1 @davidfowl 
Since you're touching this code may as well fix the parsing as well.