add test command in package.json
reformat
beautify
refactor query predicates
add lib to handle simple iso 8601 date ops
use isodate lib
fixing bar order in charts, adding onclick binding on bar chart