Added the ability to read configuration options from a file.

This commits belongs to issue #47.