Thins out controller

We added custom_config file with global variables to use in the
controller methods.