add lib for settings API

from https://github.com/tareq1988/wordpress-settings-api-class
first pass for use lib for settings, cleanup code