Add ParseContext hook for adding exec globals
clean up ParseContext exec hook change
Merge pull request #122 from ryan-williams/parse-context

Add ParseContext hook for adding exec globals
Allow building a client that can select the service endpoint based on an
endpoint name specified in the ServiceInstance's additional endpoints.

The default behavior is to use the primary end-point (backwards compatible).
Use an Optional to hold endpoint name.

+ use Optiona to hold endpoint name
+ remove duplicate code in GET_ADDRESS

hat-tip: jsirois for these excellent suggestions in his review
Code cleanup and a bit of refactor to address jsirois's review comments.
Fixed a typo and a minor optimization
Merge pull request #124 from birmiwal/master

Support selecting additional end-points while building a Thrift client
Initialize endpointName to an empty Optional holder.
This fixes broken ThriftFactoryTest too.
Merge pull request #126 from birmiwal/master

Initialize endpointName with Optional.absent() in ThriftFactory