Added ram_filebuf and adpated ram_fs.

TODO: xsputc is implemented but seems to be not called
by write.