What does XOXO mean?

If you end a letter or e-mail with it, or recognize it at the end of each episode of Gossip Girl, “XOXO” is commonly known as “Kisses and hugs”. But how did these two inconspicuous…