Wordpress plugin refactoring

Refactoring; moved endpoint update logic into SBTSettings model