Modified the client and webservice and hibernate layer so that it accept...

...s adding parent and child samples to samples. Added tests for the Metadata object and adding samples with parent samples.