Fix permissions lookup for wildcards

:Release Notes:
Fix wildcards interpretation in #/permissions/*/service

:Detailed Notes:
First lookup in the hash table as in previous implementation.
Fall back to lookup in a binary search tree among wildcards.
Add automatic test for ls-hub security.

:Testing Performed:
Tested with unit tests (with Valgrind).
Tested on the device.

:QA Notes:

:Issues Addressed:
[GF-39371] LS2: Fix permissions lookup with wildcards in the service

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>

Change-Id: Ia7a3d705bb6a7d616a62062b6f8ddbe80032ecdb
Reviewed-on: https://g2g.palm.com/3497
Reviewed-by: Build Verification
Reviewed-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Tested-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>
Tested-by: Alekseyev Oleksandr <alekseyev.oleksandr@lge.com>