moved C-side R interface for resample to separate file
added those wrapper files
removed C-side interface to R resample files
made variables for resampling types