Expose named constants in bindings.
Use 'NodeConstants' instead of magic numbers.
Use 'TConstants' instead of magic numbers.
auto merge of #1929 : saneyuki/servo/const, r=Ms2ger

We can use `TConstants` instead of by #1914 fixed.