New functions to read/write git/config-like files

Signed-off-by: Alexey Gladkov <legion@altlinux.org>