Enhanced build trace

- Automatically refresh trace if status changes, i.e.: from pending to running
- Automatically enable build scroll if status is either pending or running
- Added method to fetch raw build trace
- Handle "\r" in terminal output
- Use smaller font for build output
- Speed-up ansi2html converter (consume more characters in one loop)

Avoid using {...} for multi-line blocks.