Introduced _WebDriverBase as a base class for most classes.

Other minor fixes.