Allow custom path on remote server

This patch allows the use of a custom path on the remote server, such as

http://myserver.tld/emoncms_directory

See thread here :

http://openenergymonitor.org/emon/node/1990