Add explicit session_start(), otherwise it does not work.
Environmentalize main config parameters.

This is required for the app to be packaged with pkgr.