Updated settings.php and index.php

Decided to go OOP as I figured it will make things easier should
we decide to add "viewing modes" in the future, such as rendering
the field in SVG, HTML Canvas, or whatever.