added base class service.js. All node services should inherit this