Revamped installation procedure.

Now uses setup tools, automatically installs the executable scripts in
the right places (and makes sure that they use the right python
interpreter), and use pkg_resources to get the right path for the config
file.