Dropout for other layers than MLPs

This PR enables to use dropout outside of MLPs.

dropout_fprop is moved to Layer.
That enables FlattenerLayer and CompositeLayer to implement dropout too.