Rust 0.13

This is a follow-on to #2, and gets things working on the current 0.13 nightly.