Refactor

* Store the API URLs in a constant and use them.
* Remove ArrayManagerService. It was redundant. Replace the calls in UI
  with array.push and array.splice