Add grid writing support to the api (as yet untested).  Add generic grid reading.
Work on being able to use grdmath