UriHelper tests

- extracted UriHelper methods to a separate class
- Tests for UriHelper
- Also fixed a showing loader when an image was already loaded in content preview panel
- and lastly updated Applications.ts to the singleton pattern, because UriHelper is used there and we need to be sure it is present when invoked