Whitespace.
Add RWMutex to stats for consumers.
Tidy up the stats server.

- Add jsonware for profit.
- Refactor existing handlers.
- Remove pointless endpoints.