Support for running Applications under cProfile.

Controlled by the `DIESEL_PROFILE` environment variable. If `DIESEL_PROFILE` is set to `1`, `true`, `yes` or `on` the application will be profiled. `DIESEL_PSTATS` can be set to a file path where the profile stats should be written to, instead of logging them to stdout.