Titan-agent is working with rest server now

Signed-off-by: Peter <mcheung63@hotmail.com>