Critical dynamics of dipolar glasses