Add Dir.home

Points to ENV[‘HOME’], defaults to ‘.’ in the browser.
Fix File.expand_path to expand “~”
nodejs: Cache __fs__ and __path__ into class ivars
Let File be an IO and add init methods for nodejs
File#write now writes at current position instead of pos0
Add File#flush
Fix RSpec deprecation