move code/code_text back to front of log message (easiear to read when put next to other logs)
updated to account for status code change when searching
removed old manager class, initial implementation of shutdown event handling, registed handler for `agent-id` being set