Updated roleCreate() and checkPermissions()

Note that Random::name() is a non-static method.

Also added missing NodeInterface use.