Bug 18964: Subscriber changes for journal resume
Bug-18964: Publisher changes for journal resume
Bug 18964: Fixed a few small bugs in journal resume

Needed to reset the pub_data->payload_off value after record complete
Bug-18964: Removed while loop and use proper locks

Had been using a simple while loop to test journal resume before we had
the locking system working correctly. Its now working, so use the
vortex_cond_wait function instead. Also fixed a small bug from merging
with db_redesign and added an extra check when getting the next record.
Bug 18964: Changes from code review