ctp:ctpagent/ctpapi: update MD classes

1) update MarketDataAgent to be the uniform ctp interface
   to outside world.
2) store logs for MD and TD to respective files.