views/ui: Minor refactor of search-bar
resources: Add an image-path functino

This is intended to provide part of the functionality of
views.ui/logo-path.
views/ui: Use res/image-path function

View logic should not have any knowledge about the underlying
file system.
test/views/ui: Add 100% test coverage