Removed client singleton pattern.

Deprecated lots of functions related to the v2.x API; details in Issue #289.

Fixes #90.