INFRA-434 Multiple key-value search in Json logs

@vanchi-zendesk 

This PR includes: 
1. Simplified logic for the key-value processing
2. Handle the search when key is int or bool.
3. General cleanup, removed the warnings caused by Json.c/.h

I have added the cleanup functions but I think they should be common to all the types. 
Right now ctx in ug_guts is not getting freed or am I missing something ?