Friend with steps

This fixes #1386.

In order to specify roles for friends, this patch adds `$actorClass` that specifies a name of a class inheriting `Actor`.

I am not sure adding tests like this is correct.
Please point out anything.