#2781
Improvements in queryEcommerceItems function which make it works with segments query builder
improved social media networks
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.
refs #4244 updated some existing links to use link inline tag
testing whether these inline links are working
converted some links to use @link
fix some links
refs #4244 converted more links
refs #4244 fix complete comment is a link
refs #4244 escape the underscore, will be emphasized otherwise
refs #4244 replaced some links to hooks.
refs #4244 fix link
refs #4244 fix more links
refs #4244 fix link
refs #4244 fix link