add basic support for Debian;split soft-install functions into lib/ dir by func name.