Add and use permalink service

Do no longer use the $location service
SNAPSHOT
No need to configure $location anymore