Use Functions->redirect

Fixes #15
Add quit method