Add Rakefile

Also, move tests to spec/ directory