Added externalization support to NeuralNet so a trained network can be saved and loaded.