Remove editor service, move all logics into controller.
Fix js promise issues. And add several data related logics.