#2781
Improvements in queryEcommerceItems function which make it works with segments query builder
Merge branch 'master' into 2781-segmentation-on-Goals.getItems

Conflicts:
	core/DataAccess/LogAggregator.php
	plugins/Goals/API.php
	plugins/Goals/Archiver.php
Fix for ecommerce segmentation.
Tests for segments in Goals getItems methods.
Merge branch 'master' into 2781-segmentation-on-Goals.getItems
Change handling of tables using for join in segment.
Remove subselect join in log_conversion_item join with log_link_visit_action.
Merge pull request #121 from piwikpro-team/2781-segmentation-on-Goals.getItems

Fixes #2781 Add support for segmentation on Goals.getItems* API. Kuddos for the nice pull request and tests!