Refactored code. Added empty settings controller.
Added Settings infrastructure. Refactored code.