Fixed some bugs and added a new implementation for the xjcp protocol. The old api will be removed soon.