Do not reference values before use when GALAXY_TEST_EXTERNAL used.
GALAXY_TEST_EXTERNAL still quite broken.
Fix logic in tool's populate_state logic to handle multiple uploads.
Enables composite uploads through API.
Consolidate duplicated code for loading HDAs from the API.