Use container environment to pass in system settings.

Refactoring to make it ready to expose APIs allowing user to pass-in runtime arguments to runnables.