IDEA-104500 Gradle: Allow to reuse common logic for other external systems

Setup community project within 'external-system' split linto api and impl
IDEA-104500 Gradle: Allow to reuse common logic for other external systems

legacy tests are removed
fix broken code for creation of variable declaration