support for environment variables

Would be great if all settings could be set using environment variables, wouldn't it?

Could you review and merge this please?