Refactored contexts to anon classes

The structure between SNMPTransport and the SNMPContexts makes use of
anon classes to remove the package private methods.