Add long polling for inbox.

Add configuration object with accessor app.cfg(path).