Fixes #3927
Adding future look ahead window to the SQL trying to detect the current visitor
+ fixing small bug discovered (in the tests) as a result of this fix
Fixing build

refs #3913 Fixes API for dashboards + disabling Dashboard API tests for now