Inject RestCommon as an angular service.