Realignment and Casting Issue Resolution

Moved much of the abstraction from base into http, thus resolving all
the issues related to context casting since the most derived instance is
always accessible.