relay-core: add concept of userlevel