Multibackend now supports all of RSABackend

Also convert some examples to doctest.

Fixes #1023.