Added functionality to the UI and Agent that will help to intergrate Crank into D-Crank

Get rid of the extra whitespace within the `<div> foo </div>` tag (i.e. make it in the format `<div>foo</div>`).