Updated scripts/metric script

Created a new script called metrics.py which will compute basic statistics for the catalog. I plan to add more functionality later. Updated the XSS script in order to prevent the build from failing, it will only allow <br> or <br/> tags through, no other html.