Refactor: migrated resource.coffee to class based services