Move temp file creation to the test functions

It turns out that the setUp() function is called once for each
test function.
Fixed some argument errors
Early implementation of a neural network cross validation script

Includes feature caching facilities. Feature caching still needs
to be implemented for the training script.