Remove outdated run script.

This isn't a daemon any more, so `run' doesn't make sense. In any
case, the src/compd.py it relies on doesn't exist either.

Change-Id: I2a7feacc4f9f25dc2ad6c5f608955bfa76a9f18d
Remove invalid comment.

Change-Id: I288f1c5e22d6b3e89d23063ec9beaab461673394
Remove redundant imports.

Change-Id: I65270c8634d008cc2caba68d3d753b84a4a84d2f
Hide config load which causes issues during tests.

Change-Id: I8460c806c467c80ca8ae1bf5563a6d71dca6008b
Refactor the <Name>DB classes to use an injected connection.

This makes them easier to test, as there's no need to patch a member
of their module, and it also makes it clearer what things they need.

Change-Id: I5fa2248276a7b88524df7f60304d4172476b2d0c
Move test files to a tests folder.

Having the tests mixed with the sources is ugly and confusing.

Change-Id: Ieb3c8bccad2bf2d6112c7f71d64b3a042e1dd77c
Update test to match current behaviour.

We're now more helpful when a command isn't recognised, but for some
reason the test didn't get updated.

Change-Id: I704d8fc44b068acc2e5a097d092b9426fec88e86