Add support for reading config from a string.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Merge pull request #23 from debrouxl/master

Add support for reading config from a string.