Create base class for AGI functions

We'll be creating a FastAGI client soon(tm) so we need to break out some
of the base functions into another class

Change-Id: Ie36d1a1d0effb88ce9d88150e1c7309a387a55bd
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>