Refactor assert/trace/log
Add main.bit settings for logging and tracing