feature(test): Add a `/clear` route that clears browser state.

* Used in the selenium tests instead of running `unsafeEval` or `eval`

fixes #1285 

@zaach, @pdehaan or @vladikoff - wanna have a look?
`self` is used when the function call is made from an inner function and `this` references a different context. :/