PEP-8
Simplify the way we deal with config/entries files in tests
Make the 'alias' command independent of the projects db

Also add some tests for the 'alias' command.