Adding init_dir and change_working_dir.

init_dir will create publish dir where clients use.
change_working_dir will change dir to publish.