added return value to set_base_dir.
added simplesvr sample.
added port no. and base dir arguments to simplesvr.