Post filter-branch tidyups

Remove content we don't need any more, move files to more
suitable places.
Move the scripts folder to the root

There's no need for it to be inside the lib folder.
Paramterise DB creation, pass outwards the return code.
Add replacement config

This contains values also lifted from nemesis.