Refactored limiter functions.

The two limiter functions were very similar, and were unified in a single
method, with a bool argument to choose method variety.
Added functionAverage() method to DGBasis classes.
Use functionAverage() instead of direct coefficient access.

This fixes the issue with limiters on multilinear basis.