Added JsonRpcController::addMethod() for adding functions after instanciation