Use libsodium instead of rust-crypto. Move extern crates to lib.rs