Bug 987237 - Add option to display appIcon in cards...

This is the follow up from Bug 972216, making display appIcon in cards view driven by a setting and adding unit tests.