test(gen): use path.normalize to be windows aware

- change function assertOnlyFiles to use a different local variable from
global module name - path.
- show expected files when a test fails
- use path.normalize before search in the array

Closes #601
Merge remote-tracking branch 'upstream/canary' into canary
fix(client): When receiving 401 from server do full logout

- after 401 and redirect to loging, logout is called
- logout controller so cookie remove is not needed before redirect

Closes #588