Made Pecan HTML debugging an option for v2 API

Change-Id: I92f5b1e83274947f734415286182da3e1e989d18