Working buffer independent colouring now, plus re-fix for linear colouring a single file.
Fix tests that broke with the id changes.
First version of history searching tool.

-quite buggy for the first test case 'fix', but seems to work in principle.