Move URLs to url module.

Having urls in hooks module could be somewhat confusing.

Change-Id: Ib2f5809d5ff8224319a0e7e013494b0a0756d29c
Don't display applications menu if unauthenticated.

Change-Id: I6fd0ab8b787a03b233c4e9e7b7c93e4a283d272c