various changes

main changes:

update libfac, factory, pari to latest versions
start on making all the tests runnable in distributed binary versions - the basic tests run now
via a command line option