Use http referer instead of asking webslave client to explicitely pass url
Code cleanup, implement timeout, pass window.webslave.server