Refactor thePlatform-options.php

As more and more settings are added, we needed our Settings page to be
more flexible. Now we can add basic fields such as
string/boolean/hidden by just modifying one line in
thePlatform-constants.php
Speed up the Settings page

Our setting page made unnecessary WP calls which slowed it down enough
that each page took about 6-8 seconds to load. This should bring us
down to around 4 seconds.