Renaming MSG_IDX to MSG_MID
Cleaning up variable names, more debugging, working on compose
Use the debug config variable more granularly
Cleaning up jinja sessions, bugfixes, make compose/save/send work w/o JS