Bump version to 0.2.2.4, improve build configuration, refactoring, adjust DI logic, move stable interfaces to api package.