Better stats collection

There have been a few errors in production where `support` app workers have been tied up for long periods. To start fixing this problem, this PR adds timing collection for potentially computationally expensive operations.