Recreate grid selection macros from DUNE

This duplicates functionality from the old autotools implementation
in case any user code needs it. It is not necessary to build the
OPM modules themselves.
Merge pull request #182 from rolk/181_opmgrid

Recreate grid selection macros from DUNE