ctp:ctpagent/ctpapi: update

1) agent: add new functions.
2) api: add close_position().
3) test: add test to close position.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>