Introduce Sequence class

And make MLP inherit from `Sequence`
I guess we will have to add parameter name based linking later as well. But it is OK was for the first version not to support all features.