Add ParseEnv

Supports graceful handling of errors during parsing.

Fixes #5.
Merge pull request #7 from josharian/parseenv

Add ParseEnv