fix memory usage

Use canonical Strings to store dataSource, dims and metric names
instead of storing repeating strings, helps in reducing memory usage of
coordinator when storing tons of DataSegment objects.
move DataSegmentTest to druid-api
Merge pull request #29 from druid-io/fix-memory-usage

Reduce DataSegment memory usage