Initial integration tests, refactored old code, removed unused code, created configuration api.