added 'scelib', which is all the core funcs. from 'scetool'

all SCETOOL core funcs. into a library, allowing pkgtool to use all the
great stuff from scetool!