Move configuration logic to Configuration class

There ya go, now it’s possible to load configuration from various places
as described in the README.