I knew that *Joe* was used to mean *the average man*, and I discovered that *joe* is used to mean also *coffee*.

* What is the origin of such meanings?
* When it is used to mean the average man, should I understand that *Joe* is/was the most common name?