Do not load if the current path is not allowed

This patch allows the user to define specific paths to allow.

The purpose of this is the following:
We have a single page application that uses HTML5 History over which we update the URL shown in the browser. We want to encourage the user only on the main (/) site to create the bookmark because otherwise he would end up on a deeplink every time he opens the bookmark.