added caches to ruby crdt

also added a slice method and fixed a few bugs
started to implement crdt in coffescript
working on js test harness