Bernoulli Numbers and Polynomials via Residues