Added support for embedded rulesets. Resolves #336.

Sorry for the trailing-whitespace changes. I have vim set to nuke those.