refactor phase 2
[history] smoother play
add report route
add report and admin page template
add test case
update config
update config
replace deprecated express3-handlebars
replace deprecated express3-handlebars
[admin] user page
escaped from callback hell
escaped from callback hell
[apiv1] groups and device endpoint
add daterange directive
use json web token for authorize
added events router
change to token based authorization mechanism
add event summary report
merge
merged api v1