backend: extract some deps as paramters
small fixes
add some NonNull annotations for Backend
CodeManager only needs a rpcSite not a full backend