add pathname, chdir; use method_missing

- Removed call to define_singleton_method; using method_missing for
  delegation instead

- Added pathname and chdir methods, and switched to using pathname
  internally. (path still works as before)

- Added Gemfile
use private accessor for configs

- Replaced the Config::CONFIGS constant with Config.__configs (private)