Update to rust 0.6 and remove unused imports.
Merge pull request #4 from metajack/rust-0.6-syntax

Update to rust 0.6 and remove unused imports.
Add license
Add license headers