Initial design of session actions
Adding braces to several if/for/while blocks with a single statement
Typo fix in mud_connection.h