refactoring
move API methods to a different class outside jsonRPC
API classes inherit from main API class
add _add_related_item method to main API class