Add Monte Carlo Estimation of pi demo

Also includes a small API change making the `client` available through `context.client`.