Maximum refinement function

I was having trouble keeping the number of DOFs to a reasonable value (and keeping the elements big enough to give me useful time steps) without lots of trial and error. This plugin is basically an exact copy of the minimum refinement function plugin, but to put an upper bound on the refinement level. I thought other people might find it useful.