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)