Pass the appId to the application process in an env variable

Since it is passed only in the development mode it can be used for nifty things
like distinguishing mobile apps by a tuple of (id, server-url)