added missing DialogManager for cached posts #253
added debug_mode and script_debug_mode to config, added dev-javascript on script_debug_mode