Slightly improving config file handling.

This should get a lot better, but right now it's a stopgap solution.
Adding a barebones setup.py.

I'll fix this up later.