some tidy up + updates, and support for replica sets
Added fix for weird serialization in ruby 2
added integration test env for testing the console out