Update to work with Rust nightly
Create a DuktapeEncodable trait, and clean up unit tests