Managing active/inactive elements and nodes

This is a prototype of the management class for setting mesh elements active/inactive during simulation.
The implementation is based on issue #350 and comments by @norihiro-w
I have not yet tested the code but would first like to know if this is what you need. Please comment on necessary changes or extensions.