script rewritten in typescript, web client works
todo: implement IClient for WinRTClient
todo: make some order in the typescript files, it's a mess now :(