Refactor and add more settings API side.
We have to take habits to do everything on this side and not in AngularJS.