BUG: set name attr in DatetimeIndex and PeriodIndex

Now index names are preserved through slicing
Merge pull request #4233 from cpcloud/fix-index-slicing

BUG: Index removes name when sliced