Refactor site amangement.  Add API service