Fix for div-based TOCs being wider than their contents

With MW 1.22+ we get div-based TOCs instead of tables, so they take up
as much horizontal space as possible by default.
Fix ruleset for page section edit links

The class name changed at some point, probably in an effort to implement
a form of namespacing for MediaWiki's CMS elements. Additionally, we
don't seem to need the top margin at this time -- it unbalances the page
layout rather than fix anything.