Added context pool and tests.
Merge pull request #347 from google/contextPool

Added context pool and tests.