Follow-up commit to fix #1150, fixing all SELECT elements with OPTION tags
whose value is identified by a hash key named 'id'.
Follow-up to fix #1150; now we have a newcode section, do we still need to fallback to oldcode...
Fix queries needing redefinition due to the elimination of person vs company entities.
Remove debugging code and convert preference screen to newcode (except for _user reference).
Merge pull request #89 from ehuelsmann/fix-user-queries

Convert preference screen to newcode