Create applyMask.R

Customized mask function for masks with more than one value. For example, for the fmask rasters, a cloud, cloud shadow, snow, or no_data pixel could take on values of 1, 2, 4, or 255. To mask *all* of these pixels, use the argument "maskvalue=c(1, 2, 4, 255)"