Robustified js code, added group URL support, relay presence detection &...

... a dorky IM demo