modularized t-testing and pickling into one multithreadable function.

Output for save_pickle is now the pickle fullpath, which can then be
made into a list and later used to open pickles again.