[cmake] adds macro for clang format target
[functions] introduces GlobalFunction, moves Timedependent*
[functions] adjust globalfunction for base class change