Refactored Layer class
refactored softmax layer.
dropout for RBMs
fixed l1 decay for RBMs
l1_decay for RBMs.
Refactored parameter updates.