automatic login for application links

The shop parameter is appended to all application links. If the shop
isn't currently logged in and visits an application link it will now
automatically login.