move http byte range handling into core response class