fix for compile
replace each_pel / each_pel_neg with iterator
replace uint::{min, max} => cmp::{min, max}
replace Path::new => Path::init
convert some internal iterators (each_xxx) to external iterator
Revert "replace Path::new => Path::init"

This reverts commit 7c3204a764c1683282e3cbe35ab111da8e05f528.
replace link attribute with pkgid attribute
some refactoring
remove all 'self lifetime
remove unused functions
use Buffered#lines() instead of common::reader::BufferedReaderUtil#line_iter()