ctp: rename posmgr to autopos

1) rename posmgr to autopos to reflect its real functionality.
2) add global definitions for OffsetFlag and Direction.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
ctp:ctpagent: fix is_order_success

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
ctp: update test to autopos

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