Generalise the subrecord form collapse behaviour

Make instances collapsible.

Fix subrecordcreated.aspace event being triggered twice for a newly created subrecord.
Clean up add-as-you-go link styling
Fix table cell column transparent if it overflows - make it white so it can be easily read.

Fix misaligned table header text and sort arrow.
simplify position setting in streaming importer
remove stray puts and do fewer cycles
Fix dropdown menu links text alignment
Fix accession toolbar markup (extra </div>) when suppressed
Add migration to convert the external document many-to-many relationship to a one-to-one.

Modify the external document mixin to define a basic one-to-many nested record.

Clean up the unique location (within a record) validations and add a translation (it was without an error msg at all).
Some tweaks to add as a windows service
Merge pull request #681 from hudmol/fix-batch-positioning

Fix batch positioning
Merge pull request #686 from cfitz/master

Some tweaks to add as a windows service
Some tiny tweaks for the new Windows service script.
Merge pull request #685 from hudmol/make-external-documents-one-to-many

Make external documents a simple one-to-many nested record
Added a new solr field 'agent_uris' for any records with linked agents.

When listing an agent's linked records, search by the agent's uri for an accurate listing (rather than the agent's sort name).

Also fix sorting on the agent's detail page (ajaxified).
Increment migration number to avoid conflict
Merge pull request #683 from hudmol/fix-agent-linked-resources-listing

Fix a few things on the agent's public details page
Update jquery to v1.11
Fix mysql error in migration on the unique constraint for the location column (too large).

Introduced a location_sha1 to contain a hash of the location string and test uniquness against.
Merge pull request #688 from hudmol/fix-external-document-migration-in-mysql

Fix error in 014 external document migration (MySQL)
Fix timing-related Selenium failures for RDE