Commit dbef95f77df9ad6d775fd4655fa928e7f72a4580

Con Kolivas 2013-10-05T09:31:36

Submitting an ntime offset nonce needs to be done on a copy of the work instead of the original so abstract out shared components as much as possible, minimising strdups in copy_work and make submit_work_async work take copied work, cleaning up code in the process.