use canvas referrer page as next when asking for permissions

Hi,
if I open url https://apps.facebook.com/app_name/app_path it goes to "app_path" of my canvas app, unless it needs to ask for permissions.

This commit fixes it. Feel free to merge it to your repository.

Honza