Fixes format of sqlite database URIs (added slash at the end). Adds fixes sorting by title of several result types.
Fixes autocomplete uris and corresponding tests.
Fixes databases query for postgres for super users.
Cleans tests. Makes title, subtitle and autocomplete texts come from their respective classes rather than from the code that creates the output.
Minor output changes to better reflect foreign key values.
Creates the 0.4 release.
Merge branch 'release/0.4'