Remove hardcoded paths

* added helper functions to return variables for system we are running on
* removed hardcoded paths and socket type

This will allow us to expand to other operating systems without changing too many files. 
I agree on abstracting away the rpc connection closer to jujuc.  We may well use something like named pipes for this communication.  Simply changing the socket type here is probably not the best solution.