Now the program will record the next until time(write to config.json) after writing data to database.
'config.json' add 'isRecord' and 'until' field.
reduce code size of tools.js
Now can accept unix time or string time
Merge branch 'dev'

merge dev to master.