decoupled: syncronize with the dumux trunk

and various minor code quality improvements like replacing the C-style
math functions by their c++ equivalents.