More work on OpenCL whitelist/blacklist UI

Change-Id: I526d6652a956be3031ed46ab15eeb333d3f40a7c
Some simplification and refactoring, no functional change

Change-Id: Ie7ba158063dc0c588e114278cedb80e414ccc4cb
Make it possible to actually edit existing white/black list entries

Still not possible to add new ones or delete existing ones, though. And the UI
for this is not finished at all. Work in progress.

Also some refactoring. To increase readability, introduce typedefs in
ScCalcConfig. Not sure whether nested types inside the class is a good idea or
not.

Change-Id: I8e1695bb0594e2cd5f8b5ce0ece075842b77762a
Update the white or black list when editing an entry

Must be careful to re-select the logically same entry even after it actually
has been removed and the edited on inserted.

Change-Id: Id19f7845fadbc018affab7a6cb6b421ed9170297