Move Niflheim code for Terminal in dedicated repo