Add DTOs and refactoring configuration API
Refactoring for using with configuration API
Merge pull request #2 from wagnert/master

Refactoring