Introduce base class for Yahoo Finance queries and concrete class for stock information query.

Refactor query related implementation to base class.