Move configuration into top-level; fix paths

* Move configuration to be a hash passed to the top-level Pin module.
* Generate paths from class name.