handle adding by url, but when the url is missing the scheme - SYSMO-1643

it will default to being http://
update javascript to allow urls without scheme - SYSMO-1643

for batch upload
some code cleaning and refactoring