Added the possibility to make it work with transmission in a different s...

Hi, 
I added the possibility to make headphones work for people who have transmission under a proxy, or just any different folder than /transmission. It is retrocompatible and still works on the /transmission/rpc for people who have transmission on an url that ends with the port number.

It worked for me so far (2 weeks now), feel free to use that ;)