Implement :list-child and :only-child pseudo-classes. Fix #1295, fix #1296
auto merge of #1297 : SimonSapin/servo/last-child, r=SimonSapin

Same as #1296, with a fixed commit message.