Reset first paint when loading starts

This pull request contains also fix for emitting url changed. As that should also be emitted only if it has changed.