Commit 8c0ea19e132c160e50fcb00ae43a7502bb90f380

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.