Merged write.go, read.go to shell.go.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Changed default temp path.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>