Updated lib to run with 0.10 rust.

Not perfect work, but got everything working and got rid of the majority of compiler warnings.  Hurrah!