Fix a few deprecation and convention issues for newer rust and cargo versions

- Git ignore Cargo.lock
 - Use [lib] instead of [[lib]]
 - Don't implement ToStrRadix
 - Use .to_string() instead of .to_owned()