HttpBaseUrl code cleanup
Changed method parameters for constructor and uploadFrom
Fixes for psr-2 coding standards
Updated tests