added the LearningRule class

The new program design allows for interchangeable learning
algorithms (momentum, rprop, etc.).
import scipy.misc
added data module
fixed import for Python 3
Merge branch 'master' into lasse-master

Conflicts:
	examples/convnet_mnist.py