Adapted the client library to the new (simpler) beliefstate service interface

As the beliefstate system has undergone a major refactoring concerning its interface, the client library needed adaptation to that. It now properly connects to and operates the beliefstate system using the new techniques.