added test that RBM train_batch call works
restored old SGD optimizer
cleaned up recently restored SGDOptimizer code
Merge pull request #679 from goodfeli/tim2

Fix more issues encountered by Tim Hang