Extract configs-related code to the configs helper

* two helpers has been added for getting single and multiple values;
* several simple tests has been added to check helpers.

Change-Id: Icaebf1737660a1cd7c24d16dcbff900e79904584