Refactored data source config -> data source code so it makes a little more sense. Fixes #2.