add [] and []= accessors for attributes

Advantages:
* Nicer syntax
* Compatibility with Nokogiri
Same story here, I'd prefer `add a new attribute using the #[]= alias`.