Bring rustfmt up to speed with current version of Rust

I don't know if you're maintaining this package any longer, but these changesets makes `rustfmt` compile under the latest version of Rust (0.13.0-dev). Most of the issues were due to namespacing of enums and some were functionality that had been moved elsewhere.

Also rename `fail!` to `panic!`.