Spelunking with the SharePoint 2013 App AppContext Tokens and StandardTokens
When writing SharePoint 2013 Provider hosted (autohosted too), SharePoint 2013 Apps provide an App context token, along with other information as part of the initial transition to the provider. That token, and supporting “tokens” (part of the {standardtoken}) are useful to understand what you have and what you can do