Bug 840137 - Refine the perf measurement output to be consumable by automation

Filters log/error messages by default, use VERBOSE=1 to reenable them.
The application being tested is available in the stats.application property.
(cherry picked from commit 7b14dfbcf9875a63641b963fa210bad9314d5c74)