Some changes to help with memory growth.

Add http timeouts

Add pprof support to the server