Added some tests, reorganized code

* moved base library code from env_config to lib directory
* added tests for bin/env-config options
* updated the README a bit