- added Api->registerMethod() for dynamic registering of new Methods