Use relative imports. Move dynamic method resolving to BaseService. Add rpc module.