Definition of wag

What does the word wag mean?