chapter 2 ruby solutions and javascript linked-list implementation

These are the solutions for 2.1, 2.3, 2.4, 2.6 in Ruby. Everything was TDDed.