Add feature to expand Custom Segment definitions.

I originally mentioned this feature in an email to grano. At times, it is necessary to create an API request using the full segment defintion (e.g. when the user that will be executing the query doesn't have the segment defined.) This hack makes it possible to insert the segment definition into the builder rather than just the id.