Add DBN demo code, add support for training RBMs with PCD, various
other changes.