Make debugging comments appear in the log in realtime
som_page_handler: include som_config_id options field
som_page_handler: refactor code that gets lists of options
CP-7010: som_page_handler: speed up printing of options lists

Previously, we were calling configs#get_all for each element of the tc_config, and som_configs#get_all for each element of the som_config.

Instead, we call #get_all once for each of these dbresults. This gives a significant speed-up to page loading for SOMs that have many tc_config or som_config elements (e.g. 64 seconds -> 12 seconds for SOM-344).
som_page: options with multiple selections specified in query string are not selected

Before c/s 8e58e9e80, we were asking jQuery to select each of an array of items, in a given select-multiple box.
In c/s 8e58e9e80, we mistakenly called decode() on this array, not realising it was an array. This caused jQuery to be unable to select the relevant options.
Instead, we should have called decode() on each element of the array.