Moved config reading in index controller into a before_first_request method