Update monit APIs. Fix corresponding bugs for charts.

Also update d3 lib

Change-Id: I0ece6b311e8fd073f7ef6ebc8af1f81c1943f072
Merge "Update monit APIs. Fix corresponding bugs for charts."