Identification Toolbox: improvements, bugfixes, license, preparation for getting rid of globals Closes #1694 and #1689 See merge request !1697