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.
Merge pull request #2 from metajack/unused-imports

Remove unused imports.
Add license headers