Add interface to query runtime variables from the extension process

This allows obtaining, for instance, the application ID for the application that is currently running.