added stats

Added statistics about connections, and a button to retrieve them. Will
eventually make the button attached to an interrupt...