Started work on laboratory searches. Most files are changed to reflect the call to search changing to 'laboratorySearch'. Primary changes are in s2_root and s2_search_resource.
Merge branch 'Laboratory_Searches' of github.com:mikemases/S2Mapper
added a second search resource.
Merge pull request #94 from benoitmangili/Laboratory_Searches

Laboratory searches
corrected the behaviour:
+ laboratorySearch and supportSearch, when 'sent' to the server, produce a request of the following form:
{
"search": {...}
}
instead of using their resource type ( i.e. { "laboratorySearch":{...}} )

+ The resourceType of the resource looked for is injected in the resource processor of the Root. This allows the 'search' resources to be properly processed on the way back
corrected the behaviour:
+ laboratorySearch and supportSearch, when 'sent' to the server, produce a request of the following form:
{
"search": {...}
}
instead of using their resource type ( i.e. { "laboratorySearch":{...}} )

+ The resourceType of the resource looked for is injected in the resource processor of the Root. This allows the 'search' resources to be properly processed on the way back
Deal with resource classes that register themselves N times

BaseResource.extendAs uses first element of array as resourceType
BaseResource.extendAs uses rest of array as registration names
BaseResource action handler defines resourceProcessor if unset
Use the class of resource for resourceProcessor
Or fallback to the resourceType if it can't be identified
Merge pull request #96 from mattdenner/correct_search_behaviour

Correct search behaviour
Merge branch 'master' of https://github.com/sanger/S2Mapper
adding a kit resource
adding a kit resource
generalised search by barcode for kit
Merge pull request #97 from benoitmangili/Adding_kit_resource

Adding kit resource
extracting the capacity to find its own order from s2_tube_resource, to make it available for other resources
making tube, tube_rack and spin_column 'batchable'
removed copy'n'paste leftovers....
Merge pull request #98 from benoitmangili/batchability

extracting the capacity to find its own order