Refactored cmake add_web_client_test function.

I refactored the add_web_client_test function to be a single function with optional parameters.  Also, I added coverage and code style tests for the provenance javascript.