Confirmation for logging out

* New confirmation function
* Made interface functions accessible through window.Interface