Fix browser tests regressions

1) An application should be present in "active applications" list even before it is launched, otherwise a protocol handler won't be registered for it
2) We should make sure that applications can be launched only from local directory URLs (not local file URLs)
Merge pull request #1363 from pozdnyakov/Fix_Browser_Tests

Fix browser tests regressions