dataMgr:importerParser/whImporter: support append records from dir

1) Add support to append all records files matching datatables in
   database stored in a directory using option '-m' combined with
   '-d'.
2) Add appendRecordsFromDir() in whImporter to append records from
   a directory.
3) Rename appendRecordsOnly() to appendRecordsFromFile().

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
winfuture: add futcom module

'futcom' contains some common functions to do Futures tradings.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: use futcode instead of table names in CML

Change to use futcode instead of table names in commandline,
which is better for experience to use wfa.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: use futcode instead of table names in CML

Change to use futcode instead of table names in commandline,
which is better for experience to use wfa.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
date: add comments for all methods

Add comments for all methods.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
db:mysqldb: add comments for all methods

Add comments for all methods.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: change option '-m' to '-t'

Option '-m' is used to chose a set of tables to test, so directly
change it to '-t' to keep consistency with other subsystems.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
db:mysqldb: add ifRecordExist() method

Add ifRecordExist() method to return if a record already exists
in a data table.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: update strategy assistant

Update strategy assistant function to contain more informations
required to do assistance or simulation.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:importer: fix incorrect start date for January

fix a bug that can not return correct start date for January.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr: update comment and promption

Update comment and promption for 'update' mode.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
dataMgr:dataParser: fix that can not check big tables

1) Fix a bug that can not check big tables containing many
   sub-future tables, such as m01, m09.
2) futcom: add new function futureTalbeExists().

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

1) Introduce 'regress' subsystem to do regression tests.
2) Add 'runstat' module to maintain runtime statistics.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
strategy:futures/turtle: add runtime stat support

Add counting runtime statistics support.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regression: add count runtime statistics support

Add count runtime statistics support.

Signed-off-by: Zhengwang Ruan <ruan.zhengwang@gmail.com>
regress: move regression.py to regress subsystem

1) Move regression.py to regress subsystem to benefit
   sustaining.
2) Update win.py because of 1).

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