Restore the Platform's Input package, the pass-by-reference change is a show-stopper

This reverts parts of or completely the following commits:
57ea1c71f0d5d139123b71b80015b3a10e9a3de2
a1c8146d8b591c253f366af98967d70935928aa6
8a62f95843dd6b42f0575f649b2cc0ee21f25e1a
5b96ee1994ac472f6526346f3d601ff3ac521ef6
Extend JUri from Uri
build query is public in JUri
Fixes. Thanks @mbabker
Merge pull request #260 from wilsonge/composer-uri

Extend JUri from Uri
Fix parse function being public in JUri
How about we pass in the arguments
Merge pull request #261 from wilsonge/composer-uri

Fix parse function being public in JUri
Merge pull request #262 from wilsonge/composer-uri

How about we pass in the arguments
Merge branch 'ComposerIntegration' of https://github.com/joomla-projects/joomla-cms into ComposerIntegration
Updates as discussed