Add crates.io 'log' to dependencies

The log crate should be coming from crates.io in the future.
See the PR [here](https://github.com/rust-lang/rust/pull/19820).

Also, std::str::from_str() is deprecated, so std::str::FromStr::from_str() should be used instead