Generalizations of Lipschitz spaces and an application to Hardy spaces and bounded mean oscillation