Merge pull request #40 from eleybourn/master

FR xlations
Release 5.0.5 changes
Emergency fix for list building problem

Needs more work; but partial list rebuild is broken (probably because
queries are not store correctly). In old version, go to list, then view
book, then cancel and all headings were lost. Forcing full rebuild fixes
this, but is not a good long term solution.
Release changes 5.0.7 + emergency bug fix

- Fix to sql building code so that it correctly sets the 'where' clause
Merge pull request #503 from Grunthos/master

Various fixes (5.0.6/7)