Update to Rust 0.6 syntax.
Merge pull request #6 from metajack/rust-0.6-syntax

Update to Rust 0.6 syntax.
Add license
Add license headers