Make a base class for sentiment request handlers

We make a common base class for sentiment request handlers in order to
reuse code in the future. For example, our user facing query handler
will use much of the same code that our future API handler will need to
use as well.