Initial work about removing the evals from the remote codebase

Use shared default slave specification for cluster and slavenode
instead of sending the code as json and calling eval on it.

Also use http.request instead of http.createClient in endpointclient.