add Java API for Spark

propagate RestService through-out M/R infrastructure