Add pre-route hook for login and welcome pages

This will allow to remove hardcoded urls from login and welcome pages
and remove access to this pages by direct url

Related-Bug: #1386640
Closes-Bug: #1387731

Change-Id: I64c4bf23023e686e21164f6223c91600263d9dec
Merge "Add pre-route hook for login and welcome pages"