add support to compose livy code for new and method
add support to compose livy code for new and method

kevinykuo/sparklyr,kevinykuo/sparklyr,rstudio/sparklyr,kevinykuo/sparklyr,rstudio/sparklyr,kevinykuo/sparklyr,rstudio/sparklyr,rstudio/sparklyr