Wrap the javascript battlelog dialog api in c#.

Fixes #12