Add programmatic loading of RSM files at runtime from JavaScript.

So many opportunities with this. :D

Also fixed themeing again.
Bulletproofed a bunch of things, changed error dialogs, and fixed a
couple-o-three bugs.
Added style whitelisting and blacklisting, complete with parenting and
globals.  Some bugs may remain.