Implement named constants in bindings
auto merge of #1914 : evilpie/servo/constants, r=Ms2ger

Generated code looks like this:

```rust
pub mod UIEventConstants {
  static SCROLL_PAGE_UP: i32 = -32768;
  static SCROLL_PAGE_DOWN: i32 = 32768;
} // mod UIEventConstants
```