Add support for Firebug profiling.

When the FIREBUG_PROFILE environment variable is set to a true value,
starting the timer in performance tests will automatically start the
Firebug profiler, and stopping the timer will stop the profiler and
wait for user input before continuing.