support custom logger, and remove log color

Custom logger is useful feature, can be used for log4js or some other
log system. Colorful log message can be implemented by custom logger.
Merge pull request #8 from perfectworks/master

Custom logger support.