new general term

I would like to merge a new general term. At the moment, it works for scalar elliptic problem and for linear elasticity. I also intend to generalize it to more complex problems and to provide an appropriate documentation. If you agree with the merge I can also divide one extensive commit into individual small committs.