latest rb3 api changes

wow asermax - you were quick off the mark!

Since you've already pulled in the initial stuff, please can  you add the latest - it fixes an important rb299 action issue in the first commit.

I've also added a Toggle Action API for one of my other plugins as well.