Update to new syntax and removed unused imports.
Merge pull request #1 from metajack/rust-0.6-syntax

Update to new syntax and removed unused imports.
Add license
Remove unused imports.
Merge pull request #2 from metajack/unused-imports

Remove unused imports.
Add license headers