some basic functions and new cmd tool to manage resource on server

Only 'stat' api has been implemented now
implement a new manage api call: delete
implement a new manage api: copy
implement a new manage api: move
implement a new manage api: chgm
make WsError to be instance of Exception
implement manage api: list