Remove duplicated methos in resources/model.coffee
Add http service layer and repository service layer.