Making mediaserverjs work from a dedicated server

Having 127.0.0.1 meant connecting to mediaserverjs from another machine
would break it.  Document.domain gives more flexibility.
Merge pull request #108 from TheSisb/master

Making mediaserverjs work from a dedicated server