Common ApiRequestHandler base class

Introduces a new abstract base class that all request handlers will
extend from to automate some new functionality.