Complete config server thread. Make shutdown explicit in main.c. Make actions available in header.