code cleaning and copy some modernizations from icepick to icerate
fix specific line loading in icepick/icerate, and simplify the code for the same in irview