#620 - Fix resources save of 'RunOnAllAgents' job.

Since a resource config from the actual config object was being reused across multiple job
instances, only a single copy of the resource was being saved into the DB. Since the saving
was moved from iBatis to Hibernate, the save semantics changed. Unlike iBatis, Hibernate
realizes it is the same resource being shared across instances, and saves only one copy.

The fix is to send a different copy of the Resource object to Hibernate, for every save, so
that the save semantics mirror iBatis'.
#620 - Fix properties save of 'RunOnAllAgents' job.

As with 9df2e1526880eae2abf311cba3538b33e6e7bfc0, this makes sure that
properties of every job of a runOnAllAgents job and a runMultipleInstances
job are saved.
#620 - Fix artifact plans save of 'RunOnAllAgents' job.

As with 9df2e1526880eae2abf311cba3538b33e6e7bfc0, this makes sure that
artifact plans of every job of a runOnAllAgents job and a runMultipleInstances job
are saved.
Merge pull request #624 from arvindsv/fix_hibernate_related_job_instances_issue

looks good.