Add `Count` attribute to results

The `TotalCount` attribute seems to be deprecated or simply missing?
Add new example "ControlPanel.html"
Fix event callback timing issue

You can only add callbacks to SessionAcquired() after you have instantiated the PortalClient. But if the PortalClient is created with autoCreateSession then in principle the SessionAcquired() event could be fired before you had the chance to add your callbacks.
This patch fixes this problem according to my tests.
Add search helper function

It's tedious to build Solr query strings every
time you have a site that includes CHAOS search
functionality. - Now it's built-in!