Version bump to 0.4.0
updates for Ruby 1.9 and start of tests