expose environmentConfig to route handlers

fixes #48