Tidy up "diag_dump_states" and "diag_resetstat"

Add CDATA sections to SCRIPTS
Add SUMMARY to TABLES
Add missing closing FORM tag
Update HTML Boolean operators
Close INPUT tags