Asymptotic Expansions and Bootstrapping Distributions for Dependent Variables: A Martingale Approach