Cherry-picking from 07dbdf3e1
Writing Jasmine tests for metadata in download cart

Also moved a couple of supporting functions lower in file
Whitespace
Review changes for pull request #314
Fixing whitespace for #314

Conflicts:
	web-app/js/portal/filter/FilterPanel.js
Code changes for #314
Merge pull request #318 from aodn/include_metadata_in_download_3

Include metadata in download (fixed)