Add resume functionality.

This only currently works using the redis backend (since the file
backend does not support getting the last record). Also currently
does not give any indication of error if resume is attempted with
no previous records - might be good to do this.

However, apart from that this works.

Issue #8