Use restler instead of exec curl

Use native javascript instead of exec an external process