Add the mode param for border management.
Add the cval param.
Merge pull request #364 from matthieudumont/resample_border_mode

Add the mode param for border management.