Add typekeys definition sketch
Small update of some datatools/scripts
Move tasks in tools.gradle into respective components