Merge pull request #1 from nZEDb/dev

Dev
Merge pull request #2 from nZEDb/dev

Dev
Merge pull request #3 from nZEDb/dev

Dev
Merge pull request #4 from nZEDb/dev

Move transaction start to beginning of loop, so the rollback removes c/b...
Merge pull request #5 from nZEDb/dev

Fix range issue for partrepair.
Merge pull request #6 from nZEDb/dev

Dev
Merge pull request #7 from nZEDb/dev

Dev
Binaries, more speedups to inserting headers, fix issue with part repair.
Merge pull request #8 from nZEDb/dev

Binaries, more speedups to inserting headers, fix issue with part repair...
Speed-up for those with no enabled blacklists by buffering the SQL check.
4x+ speed-up of header processing by not sorting them (the benefits of sorting them is tiny vs the gain in performance).
Merge pull request #9 from nZEDb/dev

Dev
Manually updating versions.
Add back on duplicate key update to collection query, required for those running multiple instances of the script.
Merge pull request #10 from nZEDb/dev

Add back on duplicate key update to collection query, required for those...
Updating tmux monitor.php and start.php to use Settings class instead of separate DB and Sites classes.
Changing all $db to $pdo, oops.
Fixing occurrence of $site I missed.
Replacing usage of DB() and Sites() with Settings, which uses less memory.
Oops, missed a couple of Sites().