Moved opening of terminal into UI, removed all deps from karaf.core to UI code