special functions reorganization (no code changes)

This just moves several functions from `math.jl` (which was getting unwieldy, and will get worse as we add more in the future, e.g. #7033) to `base/special/*.jl`.

There are no code changes in this patch, only cut-and-paste from one file into another..