Better handling of classes and ids.

This branches adds support for ReST :name: to HTML id and ReST :class: to HTML class for tables and containers. 

It also adds support for the .. class :: directive, which now puts a 'class' attribute on the generated <p>.

Finally, it also fixes the problem of the class="step" being blatted if you put a :class: on a transition.