Add profiles for web tests, and tidy up the logging