refactor iCEburn tool into lib + tool