As I said in comments, you will want to direct support issues to the bitbucket site, but my initial observation is:
You need only 1 ApiContext, typically a class field, and it should be initialized in the Loaded event of your page.
From that point, simply use the same ApiContext for all of your calls.
Also, Query methods are synchronous and must be called on another thread than that of the UI.
working sample coming...