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

Update to new syntax and remove chained imports.
Add license
Remove unused imports.