Implemented HTML reports.

Fixed bug with duplicate cpp code generation.

Change-Id: I944b1eac1e2b2e910d96b409dac0096b1ee9b165
Merge "Implemented HTML reports."