Updated supporting classes

Made RBM a subclass of NeuralNet and moved some functionality to its
new parent class.