application: Rewrite URL-processing for readability.
Fix pruning of IDP.ticket - _info is overwritten.
Merge pull request #38 from fredrikt/master

example idp bugfix