Use profiles for builds.
More sensible logging
Now with loads more tests, including for db interaction.