moving objects and helper code of RC to core
Second step in moving RC related code from rc_plugin to core code. This step consists of moving all RC related objects and structures as well as utility code. It is still called from rc_plugin though, so there is no change in how exceptions (and potential bugs in RC) are handled.