DST fixes for 0.9.x

Backports from @brutasse's graphite-api.
Fixes issue #810.