Move license declaration to Cargo.toml

`license` is picked up as an unused attribute and gets rejected by
rustc because of #[deny(warning)]

Also new [lib] block in Cargo.toml