Spl

This is a rebase of the PR #3339, reflecting the reviews by Andreas and Evgeni.

The remaining issues are the unittests for the functions _from_tck of UnivariateSpline and BivariateSpline.

https://github.com/scipy/scipy/pull/3339