Use GlyphStore::char_len rather than constantly re-casting GlyphStore::entry_buffer.len()
Use bitflags! for RestyleDamage
Use bitflags! for NodeFlags
auto merge of #2589 : bjz/servo/cleanups, r=pcwalton

@pcwalton r?

Might conflict with the rust upgrade - I can rebase later.