config file parser; ERE-based patterns

Notable changes:
 - support for reading/writing standard key-value configuration file
 - POSIX ERE-based patterns for parsing file name
 - code restructuring with minor refactoring