upgrade moment to 2.x.x, to get isAfter, isBefore

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
calculate span taking max/min of all pannels spans

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
cleanup unused variables

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>